I had a problem with a few microswitches that would register 2 clicks every time I pressed the button. Issue was internal to the switch. I slowly pressed in the small actuator on the switch and as it was being depressed it registered one click (closing the circuit), then as I released it registered a second time (closing the circuit). In notepad, instead of it continually repeating the keystroke as it was held down, it only registered once - once button fully depressed the circuit in the switch would become open.