MZ Help with writing a plugin to expand input options

Hi, I'm learning how to write my own plugins and was wondering if someone knowledgeable could help point me in the right direction.

I'm trying to write a plugin that expands upon the number of different types of inputs.

By looking at the Input.keyMapper and Input.gamepadMapper blocks of code in rmmz_core, I know that the game has these types of inputs defined in the code:

tab/ok/shift/control/escape/ok/pageup/pagedown/left/up/right/down

What I'm trying to do is to create more of these inputs (NOT binding new keys/buttons to these existing inputs).

Functionally, it's similar to binding Common Events to buttons, but I want it to be more general and usable in menus as well.

Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-writing-a-plugin-to-expand-input-options.125741/