Conditional branch if key is only pressed for a short time, but not being holded

Howdy,

Is it possible to set that conditional branch in the common parallel event will only activate if specific key is pressed for a short time, but not if being holded? Because strange things happens if player holds the key. Normally this event should not repeat and would end after one cycle (i'm turning off the trigger switch at the end of the event). It works if player presses the button for a short time, but it seems that if player holds the button, the event repeats in strange manner.

Help!
So you want the event to never happen again, but it shows up again if the player keeps holding the key?
I haven't tested this, so I don't know if it works, but this is what I'd try:

I would try having the parallel event first set its switch off, then call a different common event that contains whatever you want to happen after the key press. This way, the first common event should wrap up and switch off before all the "stuff" happens.

If that still isn't working, try making the second event "autorun", and that should prevent further input from triggering the first.
So you want the event to never happen again, but it shows up again if the player keeps holding the key?
I want event to run every second time the player hits Enter key. Also the event has player route. So when player holds the button and press arrow keys, it breaks route.
I haven't tested this, so I don't know if it works, but this is what I'd try:

I would try having the parallel event first set its switch off, then call a different common event that contains whatever you want to happen after the key press. This way, the first common event should wrap up and switch off before all the "stuff" happens.

If that still isn't working, try making the second event "autorun", and that should prevent further input from triggering the first.
I tried exatly as you said with two events - a parallel event just set its switch off and then start autorun event switch when player hits enter, but still same results - if player holds the button and press arrow keys, it breaks the player route from autorun event.
You mentioned move route that's in autorun. But nothing else happens when autorun is running. Is an event happening? Like a cutscene since you're using autorun?

You want the player to run, that can be done with conditional branch as you've said. Since autorun is causing a problem, first let the event finish, set self switch on. Make a new page with page condition set to self switch on. Just let the event finish running. Since I guess you wouldn't want the player to run during an event.
You can try the attached plugin from DreamX (since I can't find the original link).

It allows you to disable all player movement input by turning on a switch.
You mentioned move route that's in autorun. But nothing else happens when autorun is running. Is an event happening? Like a cutscene since you're using autorun?

You want the player to run, that can be done with conditional branch as you've said. Since autorun is causing a problem, first let the event finish, set self switch on. Make a new page with page condition set to self switch on. Just let the event finish running. Since I guess you wouldn't want the player to run during an event.
Yes, it's a cut scene with a possibility to stop it. I'm trying to create a custom movement system on world map. Player must use a helicopter to travel. There is a helicopter event in the map (empty event). Before helicopter starts moving, player should choose the destination (at this state, player char image is a pointer). A cut scene starts when player hits Enter. A parallel event stores the player x,y coordinates, teleports player to the helicopter event place, changes player char image to a helicopter, removes image from helicopter event, and starts route to the stored x,y coordinates (I use plugin Smart Path MV by Shaz). Also a pointer event is teleported to the destination place before starting route so you could see the destination on map when helicopter moves to it. When on route, if player hits Enter, the route stops and player could choose another destination (another parallel event does it).

Everything works only if player hits Enter for a short time. Otherwise player starts to act like crazy, if both Enter and an arrow keys are being holded. Please find attached both events, I hope it will be clearer.
You can try the attached plugin from DreamX (since I can't find the original link).

It allows you to disable all player movement input by turning on a switch.
Thanks, but how can I set it?
Thanks, but how can I set it?

In the plugin settings.
Somehow I managed to make it work with DreamX plugin. Thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-if-key-is-only-pressed-for-a-short-time-but-not-being-holded.86300/