Keyboard and compatible (TV remotes and some gamepads and controllers which fire keycodes):

Keys down:
'UP' down:
'DOWN' down:
'LEFT' down:
'RIGHT' down:
'LEFT' or 'RIGHT' down (any):
'LEFT' and 'RIGHT' down (simultaneously):
Last key down:
Last key up:
Last keys pressed (expires automatically after a desired time without pressing anything):
Last typed string (expires automatically after a desired time without pressing anything):

Gamepads and other controllers (which use HTML5 Gamepad API or proprietary API):

Standard gamepads (compatible with HTML5 Gamepad API):
Proprietary gamepads (compatible with proprietary API):
Last gamepad connected:
Last gamepad disconnected:
"0" or "1" axes down (any) in any gamepad:
"0" and "1" axes down (simultaneously) in any gamepad:
"0" or "1" axes down (any) in gamepad #1:
"0" and "1" axes down (simultaneously) in gamepad #1:
"1" or "2" buttons down (any) in any gamepad:
"1" and "2" buttons down (simultaneously) in any gamepad:
"1" or "2" buttons down (any) in gamepad #1:
"1" and "2" buttons down (simultaneously) in gamepad #1:
Buttons available in any gamepad:
Buttons available in gamepad #1:
Buttons down:

CrossBrowdy.com example