I know that you can set actions to trigger if the user presses a set key, in my case Escape, with something like this:
transitions.push_back(new KeyTransition("GameMode", OIS::KC_ESCAPE));
What I want to know is if I can have the program "think" the Escape key has been pressed, even if it has not. For example, when the user clicks a button, the program simulates that the escape key has been pressed and triggers the event attached to it.