Finalized the InputManager and InputState classes.