Conditional Branch - Button Press

Hello guys. I need help about button press. I want to make a condition when you press a button on keyboard. Let's say it's "X" button. Trigger: event touch, priority: below character. Here's example:
 


Conditional Branch: The X Button being pressed
Show Text: Hello world!
@else
@branch end


But in game, when i tried to press X button nothing happens. I tried F1 options. Keyboard, gamepad vs. But it didn't work. I switched X to X on that menu on keyboard tab.
two problems here:


The Button X: is not the key x on your keyboard - please press F1 ingame to see how the buttons are mapped to the keyboard.


And that conditional branch checks if the button is pressed in that exact moment - one frame being 1/60 of a second. You usually aren't that fast in pressing a button, so you'll need to place the conditional branch inside a loop (or a parallel process or an autorun that automatically loops) and exit the loop on button or if enough time has elapsed.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-button-press.74130/