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

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

    if(cmd == "Press"){
      keypressdone=1;
//      String fullkeys = SOFTserial.readString();
      String fullkeys = Serial1.readStringUntil('\n');
      int str_len = fullkeys.length()+1; 
      char keyarray[str_len];
      fullkeys.toCharArray(keyarray, str_len);
