Space to launch the ship. You can click/drag the two circles (gravity "wells").
The ship and a "guide sprite" play "leapfrog" to respond to the gravity of the two circles. The Ship sends a broadcast to get an updated position. The guide goes to the ship, points in the ship's directions then, moves according to the ship's velocity. Then, it points to the first gravity source, moves by gravity strength/distance^2 and repeats for the other gravity source. The ship then points to the guide, sets its new veloicity to the distance to the guide, and finally goes to the guide. This repeats until the ship hits the edge. You can drag the circles to keep the ship on screen - IF you understand gravity...