Moved the state event logic to the InputManager class.
Merge branch 'master' of github.com:XemioNetwork/GameLibrary