Simple script to query which keys are hold on the keyboard.
Returns 0 if all keys specified on the command line are hold and 1 otherwise.
Requires libx11-dev on Linux.
query-keyboard LShift A