Arduino UNO R4 Minima - I can send keystrokes, or I can control a stepper motor. But I can't do both things in the same sketch

@MicroBahner Hi Franz-Peter,
many thanks! I am sure that you hit the nail on the head.
In fact, the original, perfectly working version of the same program is lacking both the keyboard library and the delay after the stepper.run(). Silly me for not noticing it! I was very wrong in blaming keyboard.h.

One last question for you, Franz-Peter: right now I can't make tests. In line of principle, do you think that if I move the stepper.run() line after all the Keyboard calls, the stepper may work regularly? Something like:

    Serial.println("THAT ONE - You have 10 seconds to change the active window. Keystroke will be sent to the foreground program window.");
    delay(10000);        
    Keyboard.press(KEY_F1);
    delay(100);
    Keyboard.releaseAll();  
    stepper.run();

Again thank you.