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

Thanks for the clarification.
Now I have just to find a way to send the F1 key before, or after, completing the desired number of steps, and without interfering with the stepper rotation.
I'll find a way!

All the best,
Cesare