24x LEDs with individual P/S2 keyboard inputs?

Apologies firstly for my absolute ignorance, I am a brand new convert to Arduino.

I was wondering if it would be possible to have 24 LEDs with each LED linked to a corresponding letter on a PC keyboard, so each time the key is pressed the briefly lights up. Pretty simple, but is this possible and what would be the best way to do it?

Many thanks for your help (and patience...)

Yes. Two different actions - receive the keypress, and light the matching LED.
Are you getting key information one key at a time from a PC, or from a standalone keypad/keyboard?

It will be from the PC rather than standalone, and ideally needs to continue running in the background whilst other software is running - is that possible?

Also, is it possible to program it so that the linked LED changes each time a key is pressed? Not randomly, but in some form of cyclic sequence? For example, the first time I press "G", LED 1 lights up, the next time LED 5 lights up, then 22, then back to 1 etc.

Thanks for your help

i don't know the best way to do this, because it's the very first time I've thought about this, but with and Arduino and a shift register or by reading your keyboard has a keypad it should be easy to do that.

It will be from the PC rather than standalone

If you have a way to make the USB port output the key pressed on every keypress, the LED lighting part is pretty simple.
I don't know how you get individual key presses out tho. The Serial Monitor only transmits after Enter is pressed.

corbeau:
Also, is it possible to program it so that the linked LED changes each time a key is pressed? Not randomly, but in some form of cyclic sequence? For example, the first time I press "G", LED 1 lights up, the next time LED 5 lights up, then 22, then back to 1 etc.

Sure. It's software so anything is possible.

The only question is who's going to write the software?

Thanks very much everyone

fungus:
Sure. It's software so anything is possible.

The only question is who's going to write the software?

Haha, that would be me (better get playing about with the code then). I thought it should be doable (as you say, it's software) but just wanted to double-check - and see if anyone had tried this in the past.

Will this be possible on the PC via the serial monitor though? As CrossRoads says, the program is only transmitted when the enter key is pressed, is there a way around this?

corbeau:
Will this be possible on the PC via the serial monitor though? As CrossRoads says, the program is only transmitted when the enter key is pressed, is there a way around this?

You could try finding a macro program that would spoof the "enter" key being pressed after every time you actually press a key.

Here's an instructable of your PS/2 keyboard input to LEDs output...

Not exactly what you want,but I think it would be fine for you,or it might solve you query on making of your own LEDs display of keyboard inouts.