#include <Keyboard.h>                               //Including the keyboard library



int pinA = 2;                                       //Declaring variables for the pins
int pinB = 3; 

void setup() {

pinMode(pinA, INPUT_PULLUP);                        //Setting up the internal pull-ups resistors
pinMode(pinB, INPUT_PULLUP);

}

void loop() {



  if (digitalRead(pinA) == LOW)                     //Checking if the first switch has been pressed
  {
     
      Keyboard.press(KEY_LEFT_CTRL);
    
      Keyboard.press(KEY_LEFT_SHIFT);

      Keyboard.press('M');

      delay(200);

      Keyboard.releaseAll();

      // ALT-l:

      delay(500);
  }/*  */

if (digitalRead(pinB) == LOW)                     //Checking if the first switch has been pressed
  {
     
      Keyboard.press(KEY_LEFT_CTRL);

      Keyboard.press('a');

      delay(200);

      Keyboard.releaseAll();

      // ALT-l:

      delay(500);
  }
                    //Checking if the first switch has been pressed
  
  
}