Code cleanup and a getter method for the InputHandler.