UE4 How to do this?

I working on a project and I need help. I am making a super-speed game and I have a pretty specific question; How do you make it so you run and when you let go you stay at the same speed, and if you press it it again it will get faster and repeat the process.