This sketch shows a conceptual circuit for a typical keypad. It shows a random button being selected and then models the current flowing from the corresponding row to column. The unique combination of these is how the system determines which button was pressed.