Implemented input handling from current state

Added Command base class, and PopStateCommand
Added methods to register commands with key actions

Key actions are registered from OnResume of a state