I was using keyboard module to track the key presses of the user.
But I found this problem while trying this code:
Code
import keyboard
while True:
key = keyboard.read_key()
if key == 'left':
print('left')
elif key == 'right':
print('right')
elif key == 'up' :
print('up')
elif key == 'down' :
print('down')
elif key == 'q' :
print('quit')
break
Output
left
left
right
right
quit
It feels like it is detecting that I pressed the left arrow and right arrow twice while I just pressed it once.
So what could be the problem ?
Is there any other module that I can try ?