The utility model discloses a high-precision 3D magnetic sensor shaft body switch and a 3D magnetic sensor shaft body switch keyboard, which are used for triggering a high-precision 3D magnetic sensor to generate and output digital signals and comprise a shaft base, a shaft cover connected onto the shaft base, a shaft
handle arranged in the shaft base and the shaft cover, and a reset spring arranged between the bottom of the shaft
handle and the shaft base. A shaft
handle buckling part with an opening structure is arranged on one side wall of the shaft handle, and a permanent
magnet is arranged in the shaft handle buckling part. When the shaft handle is pressed, the shaft handle moves downwards for a long
stroke along an arc-shaped long guide rib position structure arranged on the edge of a shaft hole of the shaft cover, meanwhile, the permanent
magnet assembled on a buckling position part of the shaft handle moves downwards so as to change the
magnetic flux detected by the
height difference between the 3D magnetic sensor and the permanent
magnet, and the 3D magnetic sensor generates and outputs high-low level digital signals. The utility model has the advantages of simple structure, high triggering accuracy, high reliability, relatively small
frictional resistance and good pressing hand feeling, and can effectively reduce the swinging amplitude in the movement
stroke of the shaft handle.