Removed the InputState Class and cleaned up code.