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

I agree some of the suggestions were a bit 'dodgy', but the basic idea has merit. And yes, the switches can/should be soldered to the other side to make a usable keyboard :).