How to detect key presses?
Python has a keyboard module with many features. Install it, perhaps with this command: pip3 install keyboard Then use it in code like: import keyboard # using module keyboard while True: # making a loop try: # used try so that if user pressed other than the given key error will not be shown if … Read more