Similar to Hall effect switches, the inductive 'switches' (should we call them switches anymore, without clicky mechanical parts?) use magnetism to measure how far down the button has been pressed.