While the microswitch 9 has been described as a switch, a device such as a pressure sensor may be provided instead of the switch, because there are cases where an analog input in a direction perpendicular to the mounting surface 7 is needed depending upon applications.