Pynput keycodes. Here is the example how I use it.