Make sure keyup events don't leak underlying keyboard layout
Sometimes if one is not paying attention to lift the key pressed earlier than the modifier key first it happens that the keyup
event is leaking the key that would have been pressed without the modifier in the first place. See the ß
in legacy/trac#21390 (moved). We should make sure that the keyup
event is delivering the same key as in the keypress
event.