$ luarocks install readkey
This module is modelled on the CPAN Term::ReadKey
http://search.cpan.org/perldoc?Term::ReadKey
It provides simple control over terminal driver modes
(cbreak, raw, cooked, etc.), support for non-blocking reads,
and some generalized handy functions for working with terminals.
Versions
Dependencies
lua >= 5.1
luaposix >= 31
Readline >= 1.3
Terminfo >= 1.1