How to make timer abort when a player presses the cancel button?

I want the player to teleport when time reaches 0 when they touch the object. I know how to do that and it's okay!

How can i make the timer stop, if the player presses cancel button (x) and abort the teleportation?
Make an invisible event with trigger set to "parallel process", then add this eventing:

Code:
Conditional Branch: If "Cancel" is pressed:
  Timer: stop
End Branch

(I'm using the German version, I'm not sure about the English commands)
Make an invisible event with trigger set to "parallel process", then add this eventing:

Code:
Conditional Branch: If "Cancel" is pressed:
  Timer: stop
End Branch

(I'm using the German version, I'm not sure about the English commands)
THANK YOU SO MUCH!!!!!!! I WASTED SO MUCH TIME Life saver

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-timer-abort-when-a-player-presses-the-cancel-button.178343/