Implements a key map and a state machine for InputToIntent. One unit test failing.
Fixes unit test.
Implements the state machine for selecting a target.