Jake and Robbie: Refactored KeyInputHandler. Added more javadocs and comments.