This is one of those things I frequently have to explain to my students. Gravity doesn’t just “go away” when you’re in orbit. In fact, the gravity you experience in orbit is pretty much the same as you’d experience on the ground. The weightlessness that astronauts experience while in orbit comes from constantly falling. But the curvature of the Earth makes the ground go away at the same rate you fall. So you just fall forever.