The figure shows a shear key inserted into a slot cut into a shaft. The shaft is supported by a bearing on the left.
 

The shear key is inserted in the slot.