Using keyboard to control LEDs

I'm hoping this is possible with Arduino, but it's quite possible it won't be. I have an UNO board and I'd like to have something along the lines of, if I press the number 1 on the keyboard the board is connected to, a LED comes on. If I press 2, a different key LED comes on. Is this possible at all? If so, is it possible to run while I'm doing something else (e.g. see how many times I press "R" in a League of Legends game) and not be forced to type in the serial monitor? Forgive me if I'm a bit untechnical with what I'm trying to say. I switched majors from EE over 2 years ago

doelling:
Is this possible at all?

Yes, but the majority of the work will be through a keylogger on your computer. Lighting an LED up when you receive a '1' or a '2' is trivial.

If so, is it possible to run while I'm doing something else (e.g. see how many times I press "R" in a League of Legends game) and not be forced to type in the serial monitor?

Again, yes, but that has little to do with the Arduino, and everything to do with the keylogger running on the computer.

Ok, so it's actually as simple as the Arduino reading the output from the keylogger. Is there a keylogging program that I can use to send logged keypresses in real time? All the ones I've been looking at seem to just save it in a txt file, but I'm not sure if that's updated in real time or added after a certain amount of time has passed.

doelling:
Ok, so it's actually as simple as the Arduino reading the output from the keylogger. Is there a keylogging program that I can use to send logged keypresses in real time? All the ones I've been looking at seem to just save it in a txt file, but I'm not sure if that's updated in real time or added after a certain amount of time has passed.

Looking around, I found this YouTube video which looks to be like what you're looking for. Here's the Reddit post about it, including code and a link to get the Keyboard input. Maybe that helps?