Pausing/Playing Event Ticks on Key Press

Hey Guys,
Im trying to implement a system where upon pressing a key it plays the event(currently its set to having the static mesh rotate in place) and when the key is pressed again it pauses.

My current problem is that I dont know how to insert the functionality to pause the rotation by pressing the key or heck even starting it upon pressing the key.

Along with that I’m curious as to if theres a way to wind up or slow down the spinning of said object upon press/release

Any help would be majorly appreciated!

the blueprint should be like this:

N Flip-Flop means that you do a and b in order. First time it is executed, it does a, second time b, third time a, fourth time b and so on.

You can use the built in function “Set Actor Tick Enabled” to decide if “Event tick” should fire or not.

I Used If Widget Button, You Can Change The Bool Between Is Pressed And Is Released, Making A Rapid Firing Auto Gun