How to detect whether if a key is being pressed down?

No worries Michael. Thanks for helping.

Unfortunately that didn’t work either. Under begin routine:

kb = keyboard.Keyboard()
keys = kb.getKeys(['a', 'd'], waitRelease = False, clear=False)

for thisKey in keys:
    if thisKey == 'a':
        rot_line.ori += 2.0
    elif thisKey =='d':
        rot_line.ori -= 2.0

I will tag @jon now because I’m stuck and I really need to get this done soon :slight_smile:

Sorry for bothering Jon. Can you help me out please?