if event.key == K_s:
if event.mod & KMOD_SHIFT:
player.move_ip((+5, 0))
else:
player.move_ip((+1, 0))
does the following code work the same way?
if event.key == K_s:
if event.mod == 1:
player.move_ip((+5, 0))
else:
player.move_ip((+1, 0))
i mean is it a good way to understand if i'm pressing the shift key?