Button condition Pressing

Okay so I have a Faux Menu "Fake menu" It's a bunch of pictures that I want to trigger to show up when the play hits the button that opens the menu which in this case is x but the conditional branch doesn't have that as a button and i'm not sure which button you have to press the options i have are here
Spoiler: Button options
1623191837944.png
I need a conditional branch to tell them if they are pressing the wrong button and jump to label to bring them back to the beginning of the branch until they push the right button. I want to make this tutorial in case someone has never played and rm game and doesn't know the buttons. The tutorial also has a skip button too so that the player doesn't have to go through it if they don't want to.
I only have MV, but I thought I would post anyway.

I have those same options under the Button dropdown for conditional branches.
But if you use some code, you can apply it to any key you want. Remember, though that RPG has its preset default actions for keys ("x" is the escape key)

For me, this seemed to work, just put it in the script box in the conditional branch (it's below the Button option)
Code:
Input.isPressed('x')

If the code still isn't working, it might be that you have to register the keycode. You can find a plugin for that. Put it under your "js/plugins" folder. Check here for a template plugin (not my code):


Then just change one of them to the key you want, while removing the others.
Code:
Input.keyMapper[88] = 'x';
@autodidact It didn't work... It's mapped in the js file of the core under escape and i tried that too but it didn't work
Yay! I actually helped someone!

Glad it worked!
@autodidact I didn't sorry, i thought it did because when i hit another button the else came up but when i tried with x it didn't work sorry for getting you worked up
https://theasciicode.com.ar/ here are the ASCII keys
Using the above plugin by @autodidact
you can add the following
Input.keyMapper[120] = 'cancel'
120 is lowercase x key as shown in the ASCII key link provided.
I think the plugin provided is still limited by the 8 standard buttons provided by RPG Maker as they are only overwriting actions with a different key.
These are the controls found on the RPG Maker MZ documentation.
Screen Shot 2021-06-08 at 6.24.49 PM.png

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/button-condition-pressing.137298/