how to press? 2 buttons on the keyboard to make the event work.

hi, hopefully i have the right forum
I'm looking for a way to enable conditions in the event.
By pressing the two buttons on the keyboard
formulas like X and O at the same time
Thank you if someone can help
input.isTriggered(KEY) && input.isTriggered(KEY)

there are some plugins to use like ZE_Keymapper, Yanfly had 1 I think,
there is one that call a common event.

I got one but it isn't fully tested yet, but it disable all keyboard settings and need to
make scriptcalls in order to let it work nicely.

Im not sure when its done so it will be smoothly and fully functional for most users.
Assuming this is for a map event...you could use Action Button trigger and a Conditional Branch command to check if the other button is currently pressed. 🙂

If you'd like more help, some context could be helpful: are you trying to make a map event? A troop event (battle)? A timed mini-game, where it'll be checking every frame for correct button input? Etc.

Possibly related: https://forums.rpgmakerweb.com/index.php?threads/register-mutliple-button-presses.115270/
Note that isTriggered is true only for one frame when the button changes from "not-pressed" to "pressed"...I wouldn't recommend using two isTriggered checks simultaneously unless you want your players to be really good at timing their button presses. 👋

Also, only keys defined in the game's keyMapper will register via isPressed/isTriggered, and then only by the names they're assigned. Excerpt from rpg_core.js for reference:
Spoiler: keyMapper
Code:
Input.keyMapper = {
    9: 'tab',       // tab
    13: 'ok',       // enter
    16: 'shift',    // shift
    17: 'control',  // control
    18: 'control',  // alt
    27: 'escape',   // escape
    32: 'ok',       // space
    33: 'pageup',   // pageup
    34: 'pagedown', // pagedown
    37: 'left',     // left arrow
    38: 'up',       // up arrow
    39: 'right',    // right arrow
    40: 'down',     // down arrow
    45: 'escape',   // insert
    81: 'pageup',   // Q
    87: 'pagedown', // W
    88: 'escape',   // X
    90: 'ok',       // Z
    96: 'escape',   // numpad 0
    98: 'down',     // numpad 2
    100: 'left',    // numpad 4
    102: 'right',   // numpad 6
    104: 'up',      // numpad 8
    120: 'debug'    // F9
};

My take on this idea is "hold the OK button and press a direction to jump that way". You can achieve that with a simple Action Button event using a Loop and a few Conditional Branch and Break Loop commands, no scripting required. Example:
Spoiler: Event example
Code:
◆Loop
  ◆If:Button [OK] is pressed down
    ◆Comment:OK, jump in which direction?
    ◆If:Button [Up] is pressed down
      ◆Comment:Up!
      ◆Set Movement Route:Player (Wait)
      :                  :◇Jump:+0, -2
      ◆Break Loop
      ◆
    :Else
      ◆If:Button [Down] is pressed down
        ◆Comment:Down!
        ◆Set Movement Route:Player (Wait)
        :                  :◇Jump:+0, +2
        ◆Break Loop
        ◆
      :End
      ◆
    :End
    ◆
  :Else
    ◆Comment:OK button released: end event.
    ◆Break Loop
    ◆
  :End
  ◆Comment:Check again next frame for input.
  ◆Wait:1 frame
  ◆
:Repeat Above
^ That's the basic idea, but you could easily elaborate it if need be with pictures or whatever to indicate the expected input. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-press-2-buttons-on-the-keyboard-to-make-the-event-work.117139/