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

Hopefully that is the direction of learning how to debug your program. Good luck!