Okay, so I was removing a switch from my keyboard, and the pad came with the solder. Is there any way to repair it?
You have two fairly easy choices depending on a couple things.
If it is a single sided PCB just scratch some of the solder mask off on the trace connecting to the pad and lay a clipped diode leg or something along that lines and solder that in to connect the pin on the switch to the trace. Or you can solder a wire from that pin to the next solder pad on the trace. I have done both and can confirm both work.
The third I have not done personally but have heard of it working. If it is a double sided PCB and there is not actual trace to follow on the top, just heat the pin and start shoving solder in the hole. If you get enough in the hole it can flow to the other side and make the connection.