In Python, msvcrt.getch() also catches the key codes for function keys (F1 - F12). For example, if I press F11 while msvcrt.getch() is waiting for input, it returns both b\'\\xe