Debian – Cannot read keyboard in a loop in Python
I need a Python script to read arrow keys and react to them. As a first test: import keyboard import time while True: if keyboard.is_pressed("i"): print("up") if keyboard.is_pressed("k"): print("down") time.sleep(0.1) It never prints "up" but, prints characters: i i j…