How to set up a new key input in XP

I'm attempting to make it so a prompt comes up whenever the player presses the 'n' key, I've seen a few things using Input.pressex? but it needs to be defined in the script and I'm not sure how or if this is the right way to go about it.
It's not just about checking the key; making a prompt appear to type some text like in an MMORPG chat is a completely new script.

You will still need to explain the purpose of this request, considering that in your previous message you are no longer responding to the person who was helping you, so I can't include a complete solution for this, only deducing what you really need.

I await your response to understand better.
It's not just about checking the key; making a prompt appear to type some text like in an MMORPG chat is a completely new script.

You will still need to explain the purpose of this request, considering that in your previous message you are no longer responding to the person who was helping you, so I can't include a complete solution for this, only deducing what you really need.

I await your response to understand better.
Essentially right now I'm just trying to get it so that pressing the 'n' key sets a switch to ON despite it not being a standard button for the engine to recognize.
This is in an attempt to mod the game Oneshot if that helps.
I don't know this game:
game Oneshot

See this:

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-up-a-new-key-input-in-xp.182526/