On a pitch controlled wind turbine the turbine's electronic controller checks the power output of the turbine several times per second. When the power output becomes too high, it sends an order to the blade pitch mechanism which immediately pitches (turns) the rotor blades slightly out of the wind. Conversely, the blades are turned back into the wind whenever the wind drops again.
The rotor blades thus have to be able to turn around their longitudinal axis (to pitch) as shown in the picture.
Note, that the picture is exaggerated:
During normal operation the blades will pitch a fraction of a degree at a time - and the rotor will be turning at the same time.
Designing a pitch controlled wind turbine requires some clever engineering to make sure that the rotor blades pitch exactly the amount required. On a pitch controlled wind turbine, the computer will generally pitch the blades a few degrees every time the wind changes in order to keep the rotor blades at the optimum angle in order to maximise output for all wind speeds.
The pitch mechanism is usually operated using hydraulics.