MZ Need "ESC" to trigger a Common Event

Hello. Sorry if this has been answered before. I spent a solid hour trying to look for some resources and couldn't find anything to help me.

I'm using http://www.yanfly.moe/wiki/Button_Common_Events_(YEP) to have a Common Event based menu instead of the regular one (regular one is disabled at all times). I assigned the common event to bring up the menu to "X" key, but there is no option to rebind the "ESC" key in the plugin settings. I would like the "ESC" key to open the menu as well, if possible. Is there any easy way to add it there? I tried opening the plugin in notepad to try to figure it out by myself, but I might as well learn how to operate a spacecraft for how little sense do the contents of it make to me. (I have 0 clue about programming)

If anyone has a different solution, workaround, or suggestion for an additional plugin I could use, I would be happy as well.

Sorry if it's a stupid question. I'm quite new here. Thank you.
Create common event with a parallel process, turn it on witch a switch to run all the time, then put condition branch, where you set "button pressed" - set ESC and assign whatever you like to after that.
Hello. Thank you very much for your response. This works well for me. I was always afraid of adding permanently running parallel events to the game because of some warnings I've read when I was starting out, but I suppose this must be completely harmless. Thanks!

Sorry for posting this into plugin support despite no plugins being necessary 😅
I was always afraid of adding permanently running parallel events to the game because of some warnings I've read
That's good to have in mind, but any time you're warned against something you should always know why.

For the first point, there's no reason to not have always-on parallel events. That's just not a thing.

What is a thing is that you almost never want to have parallel events running without a Wait command. Giving the game additional work to process every frame - 60 times a second - is what contributes to your game lagging.

However, polling for input is a case where you need to be checking every frame, and turning on a switch (or whatever you do to activate your menu) is a lightweight option. So correct, there's no harm to this, and it's the correct way to implement it.

You would want to avoid having multiple processes running without any Wait, and you want to be conscious of how much stuff in terms of event commands those are doing every time through.

Good luck with your project.

Original thread: https://forums.rpgmakerweb.com/threads/need-esc-to-trigger-a-common-event.173062/