I hate spamming my own posts, but you might wanna take a look at the code I provided showing
how to make your own mode events using the 'on rawmode' event.
Using that code you can create simple signal-based events to handle whatever you need with all the correct parameters supplied.