Changing/ adding key commands to game

Basically I want to clone the functions of the ESC key to the Backspace key in MV. Is this possible, also are you able to program in new commands to keys, or swap keys out for other ones?

Thanks!
http://yanfly.moe/2016/03/06/yep-80-keyboard-config/
Check this out.

http://yanfly.moe/2016/01/23/yep-061-button-common-events/
Also this. Between the two of these I'm sure you'll be able to achieve what you're looking for. They can work together, just make sure to put the Button Common Events plugin ABOVE the keyboard config plugin on the list.

Also if you want to add new commands, they'll need to be in common events that are assigned to the keys through this plugin
Game Mechanic Design is for looking at aspects of game play at a more conceptual level. "How do I...? (Implementation) questions belong in the Support forum for the engine you are using.

Moved to: JS Plugin Requests
@standardplayer So I checked out the keyboard config but I'm unable to assign anything to the backspace key... is there a reason for this?
I see that, I actually never knew it didn't let you use the full keyboard until now, I guess I hadn't noticed it. That being said, there is a way to way to add an event for the backspace key fairly easily.
What I don't know how to do is access the event code of the Esc key, or emulate pressing it. I've been researching it for a bit now, I'll let you know if I find either of those things.

In the meantime, however, the Keyboard Config plugin does let you pick from nearly any button, does it absolutely have to be backspace?
search DK full input, its amazing
@bazrat I checked out the DK tools and they seem cool, but I get a Now Loading... screen everytime I launch the game now even with everything disabled in DK Tools
@bazrat I checked out the DK tools and they seem cool, but I get a Now Loading... screen everytime I launch the game now even with everything disabled in DK Tools
Well that sucks, lol
I've decided to abandon this idea for now and just hold out hope that Yanfly adds support for the backspace key haha
Don't give up!

You don't need a fancy plugin that's thousands of lines long with dozens of features to do this -- it's literally one line of code:

Code:
Input.keyMapper[8] = 'escape'

^^ Add that as a new plugin and the Backspace key will do the exact same thing as the Escape key.

Spoiler: How does it work?
The keyMapper maps keys from a number to a word. The number is the literal ASCII value of the key, and the word is what RMMV will check for. That way, you can have multiple keyboard keys that do the same thing inside MV.

To see the default mapping, just open your console in a playtest and type in "Input.keyMapper"

upload_2019-7-8_20-44-46.png


To discover what numbers correspond to which keyboard keys, you should be able to look that up pretty easily.
@Aloe Guvner you're a life saver! See that's why I love this site, I'm here thinking of all these complex ways to try and work around it and I didn't even think of adding my own code through a plugin [Facepalm]
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/changing-adding-key-commands-to-game.110807/