Question: how are gears attached to shafts?
Answer: Typically, when keys are used with gears, they are accompanied by set screws (also known as grub screws). ... Although set screws and keys are the most common form of attaching a gear to a shaft, there are many other methods, and each of these methods makes sense depending on your application.