Key stocks are used in power transmission to transmit torque between a shaft and a shaft-mounted component such as a gear, pulley or coupling. Both the shaft and the component must be machined with a keyway of the appropriate size and style for the key to be used.