Here’s a quick way to set up a Press/Release on the same button. This can also be used for things like Running / Sprinting / Crouching / Stealth State / etc .
In your Controls Panel, all you have to do is set up the Interactions to Press Only for entering a state, and Release Only for Canceling a state. Here’s how that looks