Error message: "Allowed keys list is invalid" when setting list variable name in keyboard component

Version: PsychoPy 2021.1.2

When I try to put the name of a variable in the “allowed keys” field of the keyboard component in builder I get an error message saying that the “name [variable] is not defined” and “allowed keys list is invalid”.

The variable is defined in a “begin experiment” tab of a code component like so: keys1 = [‘1’,‘2’,‘3’].

Am I doing something wrong or is this a problem with builder?

Please don’t post duplicate topics - it only confuses matters. Let’s close this topic and continue in Variable name in "allowed keys" field of keyboard component causing error