So say you want a State to be 'triggered' when a certain event happens like APPLICATION FOCUS. Just right-click on the State you want to be 'activated', click "Add Global Transition > System Events > APPLICATION FOCUS" etc. Whole bunch of useful events in there.