The thrust vector control method in this case is gimbaling, and it basically means using linear actuators (I think these are commonly hydraulic, and Falcon 9's Merlin engines actually use the kerosene fuel in the TVC hydraulic system) to point the engine in a different direction:
Raptor TVC test: https://www.youtube.com/watch?v=3pD5CZZfnYk
Merlin TVC test: https://www.youtube.com/watch?v=Pigsq5rt-mY