Ask an Explainer
If you fly on Earth, what do you do in space?
Flight is defined as moving or travelling through the air. Since there is no air in space, we have to use other terms, such as 'floating', or simply 'moving'.
However, the definition of flying extends to 'operating an aircraft or spacecraft', so you can still say 'the commander is flying the space ship', even if there is no air.