The purpose of woodruff keys is to connect a rotating device to a shaft. The semi-circular part gets fixed in the shaft & the flat parallel part is inserted into the hub for an assembly.