Fix keyboard input