In the case of a 4-button keypad, arranged as 4x1, there's no need for an I/O pin to drive the "1". It can just be tied to ground, and only 4 inputs are needed. So it works out the same. But as Harald said, the principle applies to keypads with more buttons. A keypad with 6 buttons or more will...