Wait until -ACCEPT BUTTON- is not pressed

Hello Everyone,

I introduce myself, I am Garasu Nightmare Fox, I am creating a game called: Just Battle.
and I want to do a conditional derivation, which makes it detect that I'm not pressing a button, like OK.

for example:
Wait until -BUTTON ACCEPT- is not pressed


and the problem is what I don't know much about programming

Can someone help me? I would really appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/wait-until-accept-button-is-not-pressed.144488/