Retrieves the current modifier state of the keyboard.
This is only relevant for keyboard devices.
a `GdkDevice`
the current modifier state