Keyboard input fix