matrix, like x horizontal and y vertical lines. where lines cross is a possable switch location.
if you are testing two x lines you will not see a one button press.
connect to two pins, press all keys
only shift one connection until you have tested all pins an only then shift the other connection
repeat