This is my code:
import keyboard as kb
def key_selected():
if kb.is_pressed('shift+s+down'):
return 'True1'
elif kb.is_pressed('shift+s+right+down'):
return 'True2'
else:
return 'NOTHING'
while True:
x = key_selected()
print(x)
It returns True1 even when I press 'shift+s+right+down'. How can resolve this?