Fixes shifted non-ASCII keyboard input when kitty keyboard reporting is active, including keyup release handling.