Controlling stepper motor with serial monitor - motor stops during each read

      while (Serial.available()==0);
      {
 
        char d = Serial.read();

Why is there a useless curly brace after the while statement?