Moving object with key press on Psychopy and Pavlovia

I have also tried the solution here:

But it doesn’t seem as though the keyboard class can be used online