I don't have a Linux machine, and I have almost no real experience in Linux. I did some updates to the Console stuff a few years back, but it was all Windows-only based. I don't know if anyone ever took the time to expand those routines to work for Linux/Mac or not, but here's basically how you can test it:
$CONSOLE:ONLY
_DEST _CONSOLE: _SOURCE _CONSOLE
PRINT "Press any key, and I'll give you the scan code for it. <ESC> quits the demo."
PRINT
PRINT
DO
x = _CONSOLEINPUT
IF x = 1 THEN 'read only keyboard input ( = 1)
c = _CINP
PRINT c;
END IF
LOOP UNTIL c = 1
END