Here's what I've got so far:
for event in pygame.event.get():
if event.type == KEYDOWN:
if event.key == K_LEFT:
mods = pygame.key.get_mods()
if mods and KMOD_SHIFT:
movei = -5
if mods and KMOD_CTRL:
movei = -20
else:
movei = -10
The problem is it seems to only pick up one or the other (KMOD_SHIFT or KMDO_CTRL) ALL THE TIME, not selectively. So it doesn't matter which modifier I press (shift, alt, ctrl etc.) the effect is still the same.
The effect I'm going for is that the onscreen character can creep, run or walk, respectively.
Thanks in advance.