   pinMode(13, OUTPUT);
   digitalWrite(13, LOW);
   Bridge.begin();
+  Serial.begin(9600);
 
   // Listen for incoming connection only from localhost
   // (no one from the external network could connect)

  // If the key is 3 characters, it's a number for a special key.
  if(theKey.length() == 3) {
    thisKey = theKey.toInt();
//    Keyboard.println(thisKey);
  }
  // If the key is 1 character, read the key directly.
  else if(theKey.length() == 1) {
    thisKey = theKey.charAt(0);
//    Keyboard.println(thisKey);
  }
  // Otherwise, release all the keys.
  else {
    boolean releaseKeys = true;
  }
  
  if(releaseKeys) {
    Keyboard.releaseAll();
//    Keyboard.println("Releasing keys");
  }
  if(theAction == 'h') {
    Keyboard.press(thisKey);
  }
  if(theAction == 'p') {
    Keyboard.press(thisKey);
    delay(200);
    Keyboard.release(thisKey);
  }
  if(theAction == 'r') {
    Keyboard.release(thisKey);
  }
}

  Keyboard.begin();
  String entry = client.readStringUntil('\r');
  String message = entry;
//  Serial.println(entry);//h131/pa/r-1
  do {
  //  delay(2000);
    delimiter = message.indexOf('/');
    if(delimiter != -1) {
      command = message.substring(0,delimiter);
//      Serial.println(command);//h131
      action = command.charAt(0);
//      Serial.println(action);//h
      key = command.substring(1,command.length());
//      Serial.println(key);//131
      message = message.substring(delimiter+1, message.length());
//      Serial.println(message); //pa/r-1 
      keySequence(action,key);
    }
    else {
      if (message.length() > 0) {
        action = message.charAt(0);
//        Serial.println(action);
        key = message.substring(1,message.length());
//        Serial.println(key);
        keySequence(action,key);
      }
    }
    delay(200);   
  }
  while(delimiter >=0);
  Keyboard.end();
