The act of shaping a shaft such that gears, cams, rotors, and arbors mounted to it will only fit in one direction, and may not turn independently of the shaft. A key is usually a flat side machined into the shaft, or a tiny metal block machined to fit in a matching indentation in the shaft.