"Quit" button not so responsive

Hey ya!
I have a sort of mini-game in my new project: whenever the player walks on a tile, he can move some near objects etc.
This tile is "Player touch" triggered, and it starts a loop inside which I put the four "If button UP is pressed then move up X thing etc", plus a "If button ESC is pressed quit loop and event and step back character from tile".
Problem is that sometimes ESC button does not work, or better you need to press it two or three times to work (best thing is to keep it pressed a little while, eg. one second).
Any idea about how to fix this? Do I have to make it some other way?
Share screenshot(s) of your event?

It sounds like you're waiting too long between checks, but that's just a guess.
Share screenshot(s) of your event?
Here you have.
Sorry it is in Italian, however it is very easy to understand, let me know if you need some help.

EDIT: I tried removing "Player touch" trigger to normal "Action button", seems a little better, but the problem is not 100% solved yet.
Have you tried removing the 20 frame wait (or at least reducing it)?
EDIT: I tried removing "Player touch" trigger to normal "Action button", seems a little better, but the problem is not 100% solved yet.
That's because, while it did exit the event, you didn't do anything to prevent it from starting again - so it would end, and then immediately start again. If you want to keep it activated with touch, I'd suggest adding a self-switch that changes to an empty page. Or if you want it to be repeatable, a parallel page that waits until the player is no longer on this event before switching back.

The other, different problem, is that using "break loop" command breaks the loop immediately, and it won't let "exit event processing" happen at all (I'm assuming that's what the commands for Escape are). I'd suggest just getting rid of the "break loop" command.
I removed the 20 frames wait, as @AquaEcho said; I defintely switched to "Action button", and got rid of "break loop" command, as you said.
Still it happens sometimes.
Could it be that, when moving the pieces, it has to wait for the piece to finish moving before "reading" the "ESC button pressed" command? I thought so, but I don't really think this has to do with that, as I tried waiting long after the piece finished moving, and sometimes it still happens. Just thinking aloud.
Any other idea?
PS: if you want to try for yourself please tell me and I'll PM a link with the game.
I've just now noticed that you don't seem to have any wait commands inside the loop. That's probably not very good. Try adding one, just to wait one frame, somewhere in the loop but outside the conditional brackets (e.g. at the very start of it).

Original thread: https://forums.rpgmakerweb.com/threads/quit-button-not-so-responsive.167775/