What keeps the cars down on a roller coaster?

Gravity. Cars on a roller coaster track go up and down hills, but even those hills are part of one single continuous slope that steadily lowers the elevation of the track.
Copyright Wanderlust World © https://www.ynyoo.com