Fixed Keyboard Input

Fixed keyboard input. Also changed the file to tab indented. The three
space was driving my crazy.