Specifically, I am creating a Python 3.4 program that runs entirely in the terminal. Is there a cross platform way to detect if a specific key is down? I can do it on Windows using the win32
function getAsyncKeyState()
, but don't have a way to test keys on OSX or Linux.
I know about getch()
, but that doesn't let me test for some keys (such as shift) and waits for key repetition.