Feather keys are used to connect shafts and hubs and transmit torques. By adding sensors to the feather key, the torques applied via its deformation can be recorded. However, the feather key is subject to non-uniform surface pressure, causing complex deformation. Typically, a large number of strain gauges are required to measure this deformation, and complex calculations are needed to determine the resulting circumferential force. But by optimizing the eigenbehavior of the feather key through topology optimization, its geometry can be adapted so that it always deforms according to a linear combination of a few desired deformation modes, regardless of surface pressure. This greatly reduces the number of strain gauges needed to measure the deformation state, making it easier to determine the circumferential force. The resulting geometry is tested under realistic conditions, and the study shows that the desired properties can be achieved with the use of two strain gauges.