Added an implementation of InputState.
Reduced visibility; removed unnecessary getter.