I am trying to find a clean way to close up the registered hot key that initiates an end user script.

The problem is when the script is stopped, the hot key is not unregistered and sits out in computer neverland until the application I am using for the script is completely shut down.

I would like the user to be able to just press the play button again for the hot key to be reregistered and set the script in a waiting status until the hotkey is pressed. Currently, I have to either press the play button 2 or 3 times or it just won't register at all.

Thanks,

Garrett