Press a button on arduino to open a file?

I like the way gobetwino works. but i am having trouble setting up the code on my arduino. I am trying to make an Emergency Party Button
I am trying to set up the 3 switches to select what "level" the party should be. then by pressing the pushbutton switch sends the "level" by serial port to gobetwino which opens the playlist file i want to play.
this is the code i have so far i am new to programming i have some understanding but not much. so far the code i have just repeats the string "level1" over and over. how would i get it to stop after sending the string once? any help would be very appreciated.
Thanks

demir

/*
 * Emergency Party Button
 * Sends serial commands to the program gobetwino through serial port
 */
 
int inputPin1 = 5;               // sets the input pins
int inputPin2 = 6;
int inputPin3 = 7;
int inputPin4 = 8;
int val = 0;                    // variable for reading the pin status

void setup() {
  Serial.begin(9600); 
  pinMode(inputPin1, INPUT);     // declares switches as input
  pinMode(inputPin2, INPUT);
  pinMode(inputPin3, INPUT);
  pinMode(inputPin4, INPUT);     // declares pushbutton as input
}

void loop(){
  val = digitalRead(inputPin1);  // read input value
  if (val == HIGH) {            // check if the input is HIGH
    Serial.println("LEVEL1");  // send command by serial port
  } else {
    
  }
}