|
Ugh you obviously don't see what I'm saying.
What happens if on the U key you want it to do one thing and M to do another?
The event would be invoked when you press any of the keys.
|
That line I wrote will simply finish that particular event block from continuing if the key pressed wasn't part of the three specified. You could further test after that if necessary.
If you want to run a script with different statements based on the key, you could just do it by a switch, if-else if or even in a seperate script catching the same event (the return line won't affect other functions catching that event after all).
I don't understand why you had to raise the point of multiple events at all when the suggested script clearly only cares about the 'm' key? I find ending the block if the key is not 'm' a very clean and effective method.