But I don't know what to use to register if a key is pressed (global - non-focused) on Mac OSX.
How can one do this?
I'm mostly looking at registering the modifier keys (ctrl/alt/shift etc.).