Matrix Keypad with fewer pins?

I'm wanting to use an LCD which takes 6-7 pins, and a 4x3 keybaord, 7 more pins, and run a solenoid...
Most things I've come across that use another chip, I look for the chip and it cost $10! considering my Arnuino was only $20, that's just kinda high.
this PCF8574 looks like it's only a few dollars, I'll search around for how it works...