loop picks different letter when key pressed code example
Example: python check key press
import keyboard
# if key 'a' is pressed
if keyboard.is_pressed('a'):
print('a key has ben pressed')
import keyboard
# if key 'a' is pressed
if keyboard.is_pressed('a'):
print('a key has ben pressed')