keyboard input fix