Why don't the cars of a roller coaster fly off the track?

What happens is the force stops it from moving to anywhere else. If it goes right, a mixture of G-force and gravity pushes it left, keeping it on the tracks.