A Shaft key is a piece of metal used to connect a rotating machine element to the shaft. A shaft key prevents a relative rotation between the two parts, and may enable torque transmission to occur. ... The most common key shapes are rectangular or tapered and are typically made of steel.