I tried to add the cancel action but couldn't get it to work without breaking the game because the code is a mess xD. I'll keep in mind for the next time.
Thanks for the feedback!