Opening and closing things with the same key

First question: use a FlipFlop node. Flow Control | Unreal Engine Documentation

Second question: the way I would do it would be to bind R to an input action, then have it change a Boolean variable with a FlipFlop node. Then, in Event Tick, place a Branch, check the Boolean variable, and if it’s true, use Add Movement Input to move the character.

121838-autowalk.png