A planet in motion remains in a stable orbit around the sun mainly because of two things: the nature of the gravitational force and because virtually no other forces act on the planet. The momentum of a planet changes during its orbit but not, in general, its inertia -- which relates solely to its mass.