Getting Keystate on start of app

I want to be able to know what keys are pressed when my app starts. This is for a “safe mode” that doesn’t load the settings when holding down alt (or option). I haven’t tested Juce behavior on Windows, but on OSX it seems that the keystate is only updated when the user releases or presses a key. But it doesn’t get the initial state. Any pointers? I’m using 1.53.