Detect modifier key(s) without polling

Is it possible to detect with OpenGL/GLUT if a modifier key (Alt/Shift/Ctrl) is pressed/released?

After searching for an hour or two I got quite annoyed of not finding a way to detect if a modifier key is pressed/released. I’m aware of “int glutGetModifiers(void);” which can not be used as a callback as far as I know. The only option left is polling which is not what I was looking for.

This is not an OpenGL question.