Finishing implementation of Decision state. Adding keypress simulation
and basic heuristic.