Triggers and buttons in a first person level.
Press escape to toggle the game cursor.
Click in view to center the cursor.
Some of the FSM's used in this sample: