2D Rocket Mechanic

Hi, so me and my friend are trying to make a game that is 2D and the basic understanding of the game is, you are controlling a rocket and you have to reach specific altitude and accomplish
some misson objectives. But when it comes to programming or using blueprints we can’t do anything. The point is how can we tell the game that I want to move the rocket vertical and how can I add engine mechanic?