A key in mechanical assembly fails by both crushing (compressive stress from the shaft) and shearing (transverse shear stress). The combined stress state makes it susceptible to both failure modes simultaneously, which is why key design considers both crushing and shear stresses.