Confused on how to setup up a 2 by 2 button matrix?

Heres the picture of the setup I made. It's prolly wrong because in the code it asks you for Row input and Column input and I'm just clueless. Any help would be awesome Thanks