Using 4*4 matrix keypad to control outputs

Hello all,
I am new to arduino and have a 4*4 matrix keypad and arduino Uno and a 5v 4 channel relay board. I am trying to control each relay channel with an "A","B","C","D" and I cannot figure out how to code it. I coded enough to make the keypad say the character I pressed in the serial monitor but how do I now change it to to control outputs? I have looked all over the internet and cannot figure it out. Any help would be appreciated!

Btw, the keypad is connected to PWM Pins 2-9 and I have the relays connected 10-13.

hit reply and post the code you have (before cutting and pasting code use crtl + t to format the code for easy reading)

Free snippet

switch ( Keypad.getKey() )
  {
    case 'A':
      // do something with relay 1
      break;

    case 'B':
      // do something with relay 2
      break;

    case 'C':
      // do something with relay 3
      break;

    case 'D':
      // do something with relay 4
      break;
    
    default:
      // do something else
  }

i prefer you using ShiftRegister it's easier

HazardsMind:
Free snippet

switch ( Keypad.getKey() )

{
    case 'A':
      // do something with relay 1
      break;

case 'B':
      // do something with relay 2
      break;

case 'C':
      // do something with relay 3
      break;

case 'D':
      // do something with relay 4
      break;
   
    default:
      // do something else
  }

Thank you HazardsMind very much! I have not been active, nor have I been online in a long time but thank you because I still want to finish that project!