Zero gravity movement

How do I enable zero gravity movement in a realistic way such that if I move my character forward he will continue to move forward unless he is moved a different way? I’ve tried setting the phyics gravity settings to zero, removing gravity from the rigidbody, and messing with the gravity on the mesh collider but nothing seems to be working. Any ideas?

I had a similar requirement and found this thread to be very useful. The title looks odd (walking on walls?!) but the code worked for my “outerspace” asteroid walk

Hope you can adopt it too.