Portable getch() for Python.