I was surprised the spring did not make electrical contact with the PCB. The spring is conductive. It also is highly attracted to magnets - the spring compressed when I put in my little magnetic tuna tin. But no continuity to the PCB.
I'm no electrical engineer but I thought there is a + and a - on every capacitor.
Nope, take a look at any ceramic Capacitor, they are completely non-polarized. In its basic form, the capacitor is a non-polarized device.
A Capacitor is made up of two plates of conductive material, with a non-conductive substance between them. When you put positive charge on one plate, negative charge is attracted to the other plate. That allows it to store some charge (since the material between the plates is non-conductive, there is nowhere for the charge to go). The electrolytic capacitors are basically made up of two strips of tin foil with a sheet of paper in between*, ceramics are similar but have a number of leaves interleaved, with a ceramic material in between.
C = eA/d
The value of the capacitance is based on three things:
A - The size of the pates (area)
d - The distance between the plates
e - The dielectric permittivity(this is based on the material between the plates).
Obviously with the keyboard, d and A are fixed, what changes is the permittivity of the material betwen the plates. The spring has a different permittivity then air, and therefore when it collapses down near the contacts, it changes the e, and the capacitance.
* You can actually make a capacitor exactly this way, glue a sheet of tin foil to each side of a sheet of paper. The real electrolytic is a bit more complicated then this, as one sheet has an oxide layer created on it that acts as one terminal, and the other terminal is made up with a mix of the other sheet, and the paper soaked in an electrolytic fluid. This differential structure is what causes it to be polarized.