Triggered events by pressing a key (other than confirm)

Okay, so im a bit new to rpg maker, and everything seems pretty strait forward, but I was confused about one thing. How can I trigger an event by simply pressing a key of my choice. (Please no harsh answers, even if its probably a stupid question.)
you have to say what kind of event you want to trigger, because there are differences.

For map events, you'll just put them on trigger = action button, and depending on priority you need to stand beside or on the event to trigger it with the action button.

For common events, you usually need a common event on parallel process - but that is a bit more difficult and should not be made unless neccessary as it might cause lag to your game if done in a wrong way.

So please tell us what you want the event to do when triggered and we tell you the best way to achieve that.

If you're still not sure, the link below guides you to the most important tutorials for a beginner.
I believe there's a script for what you're asking for, tying events with button presses.

Edit: here it is, Yanfly's Button Common Events. http://yanflychannel.wordpress.com/rmvxa/field-scripts/button-common-events/

--------------------------------------

But here's a nice work-around maybe idunno depends on what you're trying to do if it involves NPCs or so.

Make his Action Button triggered event, and just start it off with a Condition of "Button _ is being pressed" Let's say this button will be X on the keyboard. You just hold X down and then press Z (action button) and it will work.
Thank you so much for the script, it worked great!
This script allows you to choose different trigger keys without holding down other keys


http://himeworks.wordpress.com/2012/10/21/event-trigger-labels/
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/triggered-events-by-pressing-a-key-other-than-confirm.16173/