A keyway is a slot in the internal hub of a gear, pulley or other circular component. That keyway is matched in size and shape to the external keyway of a shaft. The ‘key’ is then inserted to join the two, providing for a positive and safe driving mechanism.