How to trigger an event with a specific key?

Hello VX Ace users!

I am looking to trigger an event with a specific key. For example:
When the player presses 'L' On their keyboard, the menu will pop up. Is that possible?
I don't mind if I have to use a script.
Yes it is. In a common event you can set with a conditional branch the option "When L button is being pressed" and then have it open the menu from the scene control.
41255-8acdccd85a76f36c68a765fb6bf15b32.jpg

I don't know if this covers everything you want to do, but I hope it helps you.
there are several ways, depending on what exactly you want the event to do.
If you have problems with the way above and need another option, please tell in more detail what exactly you want to happen in your game and we can give better help.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-trigger-an-event-with-a-specific-key.77772/