I want to know if anybody knows how to detect meta (special) keys (Ctrl, Shift, Alt, Tab, Esc, Backspace)
In general, you cannot do it. That said:
KeyPress
and KeyRelease
events.console_ioctl(4)
. You would set the keyboard to RAW or MEDIUMRAW mode (don't confuse these modes with termios' raw mode, they are not related at all).