Button Press Event To Use All Keyboard Buttons?

I've looking to integrate a "fireball" shot mechanic on the map screen, and the way the event for it is set up there's a check if a button is pressed. But the drop down menu for the button press only has things like "OK," "Cancel," "Up," "Down," etc. I'd like to assign letter keys instead. Is there a way to do that, or maybe a plugin that changes this?
Yeah, but you need to add the button first. You can use the following in a script command to add a key to the key mapper.
Code:
Input.keyMapper[##] = 'button name'
## being the the virtual keycode, and button name being a label you can use when checking to see if its being pressed.

Edit: I found the virtual keycodes here

Afterwards you can use either the script command or the conditional branch command to check if the button is being pressed.
Code:
if(Input.isTriggered("button name") == true)  {//do stuff }

sidenote: I usually use .isTriggered but im not entirely sure that's the best one to use.
Awesome, thanks for the info! So the first part I would do a script command event and put something like...

Code:
Input.keyMapper[65] = 'fireball'

and then I'd make a conditional branch with a script command? and put this code in the script command?

Code:
if(Input.isTriggered("fireball") == true)

??? Or am I doing that wrong?
Conditional branch > script >
Code:
Input.isTriggered("fireball")
You don't have to put "== true" since it's implied, unless you want to check if it's false.
Also, instead of using isTriggered, you also can use isLongPressed, isPressed or isRepeated. See the help file for more information.
This thread. I had no idea you could do this.
Now to think of the possibilities.
Yeah, I wasn't thinking in context to a conditional branch when I wrote it. You shouldn't need the if statement either.
Yup this worked. Thanks guys!

Original thread: https://forums.rpgmakerweb.com/threads/button-press-event-to-use-all-keyboard-buttons.95669/