Set LEDs on a PS2 Keyboard

Anyone having any experience of sending commands to a PS2 keyboard and willing to share some code example?

I'm mainly interested in turning on/off the num, caps, scroll lock LEDs.