filter driver key states

In user mode we have the winapi functions GetKeyState and GetAsyncKeyState.
What is the way to get this states in the keyboard filter driver?

I think I found it in IOCTL_KEYBOARD_QUERY_INDICATORS.