Press the green flag to begin. Use the ^ arrow key to create a thrust impulse. Use the mouse point/click to set the rocket direction. Everything else depends on the law of gravity. Try not to go outside the boundaries of the canvas, and try not to crash into the earth.
The rocket only changes its motion if acted on by forces. The forces are gravitational (toward the earth) and thrust (pointed in the direction of the rocket heading). You control the direction and timing of the thrust impulses.