Fixed keyboard input bug.