How to read more Buttons than pins avaliable?

Wow thank you guys!
Does anyone have a example how to use a shift register?
This matrix thing sounds greate. I think this is what I'm gona use.

@Nick: Ok. I mean an PWM output. Sry for my bad wording.