Implemented state machine into game object. Switched to passing key event instead of passing string for processing.
Merge remote-tracking branch 'origin/master'