Added previous states to InputHandler

InputHandler now has access to the previous mouse and keyboard states.