The speed of the motor is varied by the displacement of the pump or motor. The more fluid that is displaced the faster the motor will turn. When you push a lever or something forward you are probably changing the pitch of a valve plate that changes the stroke of the pistons in the motor. It is kinda hard to understand unless you can see a picture of it or a book. It all has to do with the displacement of *** fluid either from the pump or motor.