shiftpressed - detect if shift key pressed
/usr/sbin/shiftpressed
This command tests if the shift key is pressed on the console connected to the stdin. It returns an exit status of 0 if the key is pressed, 2 if it is not, and 1 if the stdout is not a console or the state cannot be determined for some other reason.
Redhat7, Redhat9
Paul Anderson <dcspaul@inf.ed.ac.uk>