UNREAL UE4 - How to Flip Flop a key to boost the speed of a flying vehicle? images attached.

Hi, i want to flip flop, the speed boost of my flying ship, to avoid players to keep pushing the space key until their fingers start to bleed LOL… i want them to press only once, then ship starts boosting speed and stop when they press this button again; normal speed should require keeping a button pressed, i have tried everything but flip flop just doesn´t work for boost speed BP (second one),

Here my regular speed (this has to stay):

Here my speed bost (thi is the one, i want to flip flop):

Please help with BP images, thanks

Your current select float will only ever select A. Input key is either 0(not pressed) 1 or -1(whatever you have specified in inputs)
Select float A increases Current forward speed by X, not over time or other variables, (the delta time is only using real time vs cpu speed)

Flip/flop will work, first option increase speed, second option reduce speed

But I suspect you want to increase acceleration over time:

Different rates for different inertia feeling, would be cool with a second stage velocity shock, ie initial boost, then a short slow drop back when full boost is achieved, give the effect of throwing you back then your body adjusting/catching up, then second key press in reverse, rapid slowdown then a small less drastic slowdown at the end.

There are several ways you can do timed events, depending on wether your using the movement component/animations etc.

Timed functions(set timer by function name), timelines or even simple doN or forloops with delays. The easiest way would be to have a simple increase speed running off a tick for a specific time using a branch based on if key is pressed.

Thanks but what i want its for example:

Presss forward button and keep it presed, then ship Will start moving, then press space, and ship Will accelerate, doesn´t matter if it accelerates gradually, i dont worry about that, what i want is player to press space button only once, then aceleration Will be ON, no need to keep it pushed to work, then if player want to stop the acceleration, just press space again and it Will fly but at regular speed (regular speed Will require player to keep forward button pressed).

Would this work?

Replace the backstroke with the space bar.