Is it possible to get python to read a key (such as Enter or Escape or an Arrow Key) pressed by the user and to record the keycode of that key in a variable?
I looked at this Python key binding/capture but this only displays the character that you press in the shell. I want to record this value in a variable, no need to print it (and not the python '\n' for Enter but the real keycode (like 13 I think it is on Windows) for the Enter key).