Fix keyboard input so that it will work.