Immediately stop walking on key press

Hey! I’m wondering if there’s a simple way to immediately stop the player from walking if a certain key is pressed. Right now, I have a Boolean that is set on the key press that bypasses the first person blueprint’s Add Movement Input if set to true. The problem is, if the player is already moving and THEN presses the key that should kill the movement, the character continues to move instead of stopping.


Try this;

If you want to enable movement on key release then remove the Flip/Flop and use Released pin instead.

Exactly what I needed, thanks!