I might be misunderstanding, but here's what I've been trying to articulate: I'm writing a very simple program that changes the brightness of an LED incrementally using commands. At the moment, I know how to do this using the serial monitor--suppose u is up, so if I were to type u and hit enter repeatedly in the Serial Monitor, then I would increment the brightness repeatedly until it reaches some maximum--but I'm looking for a way to do this without using the Serial Monitor. My goal is to be able to press the u key in any other window, have that keypress be intercepted, and use that event to increment the value in the microcontroller's memory.