How do I make a character accelerate?

Hi, in my project I want to make my character (a spaceship) accelerate. I don’t wanna use the preset, because i want to learn how to create a proper Blueprint. So, I wanted to make this spaceship accelerate whenever I press the spacebar, but I don’t know how to actually make it on the blueprints. I’ve thought about a variable that increases while i press the space key, and then the object will go as fast as the variable is. I’m new to Unreal Engine, and I don’t know how to do it.

Have a look at Add Force, or Add Impulse.

Also have a look at character walking properties, such as damping which ease the slow down.