if there are enough pins, but another way to wire that many buttons is as a 4x4 matrix using just 8 pins