Changed to use InputState.next factory instead of manually creating new states. Allows better subclassing.
Removed compose helper.
Version 5.0.0