Switch State

I need to switch the State of my bots using a button. The states (Still, Idle, Combat, Avoid etc) are store in an Enumeration and they are automatically switched when certain condition in the game are occured.
The problem is that I need to allow an Administrator to manually switch the states of my bots. How can this happen? I tried events, keys with no success.
Thank you in advance!

You can learn about AI there.

And you can learn about everything else such as states here.