Swap Z key function with X key function (swap C and B buttons)

I want a way to swap the functions of the X and Z keys so that Z opens the pause menu or backs out of menus and X selects options. I mean the X and Z keys on the keyboard, not RPG Maker VX Ace's stupid X and Z buttons for a gamepad.

Any help would be greatly appreciated!
If you press F1 when playing any Ace game, you'll get a configuration that includes the setup for keyboard to button mapping.

Unfortunately that configuration is computer-based, not game-based. It means if you change it, you change it for every game you play on your computer, but every other computer will still use the original default unless the player on that computer decides to change the keys.

That is both an advantage and a disadvantage - you can configure games for yourself, and no developer can force their opinion of where buttons should be on you. For example I cursed those programmers who forced z and x as the shooting keys in dos games, because in German keyboard z and y change position.

As a result of that configuration setting it is difficult to change the button assignmends of games, but everyone can configure the buttons to keys of their liking.
If you press F1 when playing any Ace game, you'll get a configuration that includes the setup for keyboard to button mapping.
Sorry, I should have been clearer. I'm looking for a permanent method of changing the default controls without any in-game manual configuration. Is there something I could change, such as a couple of lines in the base code or is a more complicated method required?

Edit: I just discovered Hime's Full Input Keyboard and will test it now.

Edit: It works.

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/swap-z-key-function-with-x-key-function-swap-c-and-b-buttons.119518/