4017 IC switch matrix controller and library. Up to 100 switches with 3 pins!

Noted that you have cautiously avoided the dodgy details in the original suggestions.

If you are going to use the keyboard, you would of course solder the switches to the other side of the PCB.