A machine head (also called a tuning peg or tuning key) is the mechanical device on a guitar's headstock that adjusts string tension to change pitch. Each string has its own machine head.
The string wraps around a cylindrical post. Turning the knob rotates a worm gear that tightens or loosens the string.
Made of metal (steel, brass, zinc alloy), sometimes with plastic or wood buttons. Heavier machine heads can add sustain; lighter ones may improve resonance. Choice is largely personal preference.