Added getch() like single character read in both Windows and Linux
from http://code.activestate.com/recipes/134892/