Why is InputState[S] here rather than just S?

Seems like InputState[S] is a black box. Why don't we make it S and above change S to InputState[S]