Using Keyboard to light up an led on a strip

How can I use my keyboard to light up an led on an ledstrip (1m/60leds/ws2812b)

My idea would be something like :
keyboardpressedchar = inputcodehere
if(keyboardchar = 'a'){
pixels.setPixelColor(.......);
}

Just tell me how to make a connection between my keyboard and my ledstrip.

Btw if I want to test something with Keyboard.h, the arduino IDE gives me an "did you included #include<keyboard.h> in your sketch?"

BreadEatingBoard:
...the arduino IDE gives me an "did you included #include<keyboard.h> in your sketch?"

which sketch is that?

any example sketch which include the keyboard.h

I meant, post what you are testing

Keyboard.h indicates that you want to use your Arduino as a HID (e.g. keyboard or mouse to a computer).

From your description, that however does not seem to be the case.

So lets start if your keyboard is connected to your Arduino; if so, how? PS2? USB?

Or are you talking about the keyboard that is connected to your PC?

Or are you talking about a keypad with e.g. 12 or 16 buttons?