Added InputStateHelper class