How to check if caps lock is on/off

I can check if the bge.events.CAPSLOCKKEY is NONE, JUST_ACTIVATED, ACTIVE, or, JUST_RELEASED, but how do I check if caps lock is on/off. I thought of using a global dictionary value and toggling this every time the caps lock key is pressed, but what if my player starts the game while caps lock is on? Isn’t there a way to check if the caps lock LED is on? Thanks!

You cannot do it in a portable way, you can do it specifically for different operating system though. Just google ‘get caps lock status python’ and page through the results.

Thanks sdfgeoff! I’ll take a look into that.