If you are referring to retrieving an arbitrary list of any keyboard keys that may currently be pressed, that is not currently implemented. A feature suggestion for this
has been made.
You can check the state of specific individual keys using the "Device State" tab of the condition and loop actions, or the "{STATE_KEYSTATE:}" token.