Cherry MX Switch Breakout Hookup Guide
Testing the Circuit
With just a power supply and a few wires, you can create a quick circuit to test out your switch, LED, resistor and diode. Wire up the "+" pin to 5V (or 3.3V). Then connect "-" and "1" together. And wire up "2" to ground. (If you didn't add a current-limiting resistor, make sure you add one externally! It can take the place of the wire from "+" to power, or 2 to ground.)
Now actuate the switch, and watch for the LED to illuminate.
Note that, if you've added the ghosting diode, this is the only polarity in which the switch will work -- pin 1 must be at a higher voltage than pin 2.