def pressLetter(charIn): val = getKeyValue(charIn) PressKey(val) return def KeyboardEvents(): from pynput import keyboard with keyboard.Even
I'm trying to measure time between key presses and time between a key press and key release. This is the code I have so far: import pynput from pynput.keyboard