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

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

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