anyway to detect whether the NUMLOCK is currently on or off.

I need to off the NUMLOCK before sending DOWN to a dos program to create arrow down signal, otherwise '2' is sent instead.

So, any idea to do that? How? Any example code?Thanks