HINT: in order to leave an orbit towards a planet, use slow mo mode and wait until the red trajectory aligns with the target. Start holding right click as soon as it does.