How do I create stop and go movement?

What I want to do is create a system that moves or stops the character based on input and current movement.

for example the character starts standing still. W → move forward with no stop. then S → stop. then S → move backward with no stop.

This perhaps, if it’s supposed to work with the movement comp:

I’m in blueprints for “FirstPersonCharacter”. When I drop in “Get Control Rotation” it doesn’t have “return valuex/y/z” it only has “return value” as a blue link.

You can right click node pins and split them.

Found a solution to this: “get actor forward vector” → “get yaw pitch from vector” → “z(yaw)”.