detect which button is pressed and use that value in switch statement?

Is there a sample you can refer to so I can learn this part?

A small example using a 2 dimensional array to output values for a selected row

const byte outputs[4][4] =
{
  {HIGH, LOW, LOW, LOW},
  {LOW, HIGH, HIGH, LOW},
  {HIGH, LOW, HIGH, HIGH},
  {LOW, LOW, LOW, HIGH}
};

void setup()
{
  Serial.begin(115200);
  //suppose that you have detected an input on switch 2
  byte detectedSwitch = 2;

  //iterate through the columns of row 2 of the array and output the values
  byte row = detectedSwitch;

  for (int col = 0; col < 4; col++) //each column
  {
    Serial.print(outputs[row][col]);
    Serial.print("\t");
  }

}

void loop()
{
}

Change the value of detectedSwitch to output a different row of values.

Unless there is good reason to use them I would stay away from using interrupts.