AutoLISP provides the grread and tablet functions for accessing data from the various input devices.
Note that the read-char and read-line file-handling functions can also read input from the keyboard input buffer. See the AutoLISP Reference for more information on these functions.