OS (OS Monterey 12.4):
PsychoPy version (2023.2.1)
if ‘space’ in keys:
engbox_txt44.text = engbox_txt44.text + ’ ’
elif ‘backspace’ in keys:
engbox_txt44.text = engbox_txt44.text[:-1]
When I changed the ‘backspace’ piece to ‘space’ or any other key the code worked fine and the last character was deleted. The issue I imagine is with the code not recognizing the ‘backspace’ key.
No character is actually removed from the string.