Addition of the state event callback fired when an event occurred inside a given state.