fix keyboard input