Fixed the keyboard input