Fixed Sideways movement


So I’ve been following a tutorial for an endless runner. I have everything set up but I’m having trouble trying to add some additional functionality.

In the image below is the base movement, which is fine.

Now below I have the boost mechanic which I want to act as a fast dodge that goes left or right. At the moment I just want to see if it works going right.]

When I press the button it does move to the right but because it is an impulse it carries on with its right directional movement until I move to the left again. I’m trying to figure out a way to have it move to the right but with only by a fixed amount e.g. when button pressed, move to the right on the Y axis by 300 units. I’m assuming I will have to do this with something other than impulse, maybe a location based function?

Any help would be appreciated as I am very new to UE4.