How can i get backspace to remove the last sign and not just writing 'backspace'?

Hello,

I’m new to Psychopy and have no clue of coding.

What code do i have to use to get “backspace” out of the the written-answer-part of my experiment?
(I want participants to write a few words and they should be able to use space, backspace and return)

This code won’t work

if("backspace" in key_Resp.keys):
    key_Resp.keys.remove("backspace")
    
    if(len(key_Resp.keys) > 0):
        key_Resp.keys.pop()

Help would be appreciated

Please explain what you mean by this.

This tutorial on youtube shows you how to do it: https://www.youtube.com/watch?v=RlA1qW37huw

Don’t be put off by the fact that it shows how to do it on the Builder as the part that hands that is a code bit at around the 9:40 mark.

I think i out that question in the wrong category as it should be in builder…

But if found the mistake i made in the builder.

I have the same problem… how did you solve it?
I followed the tutorial, but it doesn’t work.

I discovered the problem!!! It was not the code, but the psychopy version. Try to change in experiment settings for version 3.1.5