Switch actuation by hit-generated mechanical vibration of the target body