Command for releasing button

Hello!
I wanna use CTRL for "sneaking", so when pressed down/held, the character is sneaking (reducing character movement speed). When the button is released, I want the character to stop sneaking (character movement to normal). I have no troubles with CTRL being pressed, but I don't know how to make a script command for checking if the button is released.
Can someone help me? 🙂

Greetings
How have you implemented it so far? Please read through this post and provide more information.

In general terms, if you just want sneaking to be true if CTRL is pressed, and false if not pressed, you could have a parallel event that checks Input.isPressed('control'), and if true whatever mechanism you have implemented for sneaking will trigger, if false it will trigger default behavior.
Thank you so much! It can really be that simple, I haven't thought of that. Thank you very much!! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/command-for-releasing-button.176132/