I suggest the first thing to do is eliminate the switch itself.
Use a bit of wire or a pair of pliers or tweezers to bridge across the terminals to which the wires are soldered.
If that causes the note to sound, you have a faulty switch.
If the note still doesn't sound, the problem is elsewhere.
I suspect you have a scan-row set up i.e. 30 or 32 wires plus a common connecting the pedal board to your MIDI encoder, as opposed to matrix wiring where you would probably have a 16-way flat cable.
It is possible that the fault is with your MIDI encoder. You could check this by bridging across the appropriate terminals or pins on the encoder. If there is still no MIDI signal, the fault is with the encoder
If you do get a signal when you bridge across the encoder terminals, the fault is with the wiring/soldering.
Graham