How do you move a space ship around that is continuosly moving, so there is an effect of gravity and there is a speed that to turn round you have to accelerate the other way, and to keep afloat you have to keep pressing down to thrust upwards?
Keep track of X-velocity and Y-velocity... Every frame or so, add the X-velocity to the X-position and the Y-velocity to the Y-position. When the controls are used, add or subtract from the velocities to simulate acceleration. If you want to use gravity, add/subtract a small number from the Y-velocity every movement frame.