def userKeyboardInput(): """ Reads the input from the user :return: Keycode or None if there was no hit """ x = msvcrt.kbhit() if x: ret = msvcrt.getch() else: ret = None return ret