So you should get the correct result if you use ‘world 0’ instead, right?
if syncResp.status == STARTED:
theseKeys = event.getKeys(keyList=['world 0'])
It’s important to realize that just because a key on a keyboard generates a certain character, that doesn’t mean that that’s the key’s ‘name’ as far as a computer program is concerned. For example, on my number pad, if I hit the number 7, the key that is sent according to the program psychopy uses is ‘num_7’, which is different from the key for ‘7’. Printing the keys as in the example has hopefully showed you what the actual name of the keypress is, as far as the computer program is concerned.