I know how to catch keyup and keydown events.
I want my program to see which modifier keys (eg: meta key, control key, alt key, etc.) are currently being held down even if the program didn't observe the keydown events of those keys.
I know that click events and other events can tell me which modifier keys were pressed down when they were fired off, but my program can't wait around for one to occur.
I need my program to check for the modifier keys regularly (say, every 100ms). How would I go about doing this? My program uses jQuery if that helps.