Some laptops (like mine) have very hard-to-see keyboard leds. Other laptops don't have keyboard leds at all.
Thus, it would be nice to have some kind of keyboard LED monitor in fbpanel.
I've extracted from 'kledsd' the relevant code for watching the keyboard state and saved it in this repository:
Currently, all it does is to enter a blocking X call, wait for a keyboard status change, and print the new status. Nothing else.
But it can be a good start in order to see how to implement this feature.