Sometimes, when installing a switch into your hotswap keyboard PCB, you'll find that it's not working. And if you test your PCB with something like a pair of tweezers and it does trigger a keypress, then the following fix will probably resolve your issue.
Take a close look at the leaves of the hotswap socket. If the leaves are too far apart, then the socket won't be able to grip onto the switch pins, and the connection with the switch will be unreliable.
If you indeed find that the leaves are too far apart, just take something with a thin blade like an X-Acto knife and push each of the leaves back together again. That's it!