     //If command equals "PrintLine:X"
     else if(cmd == "PrintLine") {
 //      String keycode = SOFTserial.readString();
-      String keycode = Serial1.readString();
+      String keycode = Serial1.readStringUntil('\n');
 //      if(debug==1) {
 //        Serial.print("Printing Line: "); //Debug line
 //        Serial.println(keycode); //Debug line

//mouse left
    //If command equals "MouseMoveLeft:X"
    else if(cmd == "MouseMoveLeft") {
      String mousemove = Serial1.readString();
      int mousemoveamt = mousemove.toInt();
      delay(25);
      Mouse.begin();

//mouse up
    //If command equals "MouseMoveUp:X"
    else if(cmd == "MouseMoveUp") {
      String mousemove = Serial1.readStringUntil('\n');
      int mousemoveamt = mousemove.toInt();
      delay(25);
      Mouse.begin();
