Arduino i2c with switch

Hello! I was wondering... Would it be possible to modify this i2c Master-write/Slave-read code (that I found online) so that it sends the H and the L (turning the led on pin 13 on or off) when a momentary pushbutton switch is closed and opened?

Master sketch:

//i2c Master Code(UNO)
#include <Wire.h>

void setup()
{
  Serial.begin(9600);
  
  Wire.begin();
}

void loop()
{
  while(Serial.available())
  {
    char c = Serial.read();
    
    if(c == 'H')
    {
      Wire.beginTransmission(5);
      Wire.write('H');
      Wire.endTransmission();
    }
    else if(c == 'L')
    {
      Wire.beginTransmission(5);
      Wire.write('L');
      Wire.endTransmission();
    }
  }
}

Slave sketch:

//i2c Slave Code(Leonardo)
#include <Wire.h>

void setup()
{
  Wire.begin(5);
  Wire.onReceive(receiveEvent);
  
  pinMode(13,OUTPUT);
  digitalWrite(13,LOW);
}

void loop()
{
}

void receiveEvent(int howMany)
{
  while(Wire.available())
  {
    char c = Wire.read();
    
    if(c == 'H')
    {
      digitalWrite(13,HIGH);
    }
    else if(c == 'L')
    {
      digitalWrite(13,LOW);
    }
  }
}

Thank you!