The Earth and Moon keep in orbit due to a balance between gravity (from the Sun or the Earth) and inertia (due to the Earth's velocity around the Sun or the Moon's velocity ar … ound the Earth). Therefore, the Earth does not smash into the Sun, nor does it fly out to outer space. 10 people found this useful.