It is best to put all event handlers in one file, or a small number of files with names like “event-something.em”. That way, you can easily remove those files from the project to effectively turn off the handlers.
Global variables are useful for adding counters, and maintaining state between events.