@MarkDavid wrote:
The attached file is the code in a nutshell.
You've basically turned the structure inside out. I guess you wanted to do something WHEN you press the keys, not after STOP.
You should basically just put your "do something" in the corresponding event, now you do something after all events are handled and the event structure finishes.
It's similar to the difference of (5*8)+2 and 5*(8+2)
/Y