In space, rockets change direction by using small thrusters that expel gas. By firing these thrusters in different directions, they can pivot and adjust their course. It's like using a remote control car's steering, but with gas jets!