psychopy.org | Reference | Downloads | Github

Display keyboard input

OS: macOS 10.5
PsychoPy version: 3.2.0
Standard Standalone? (y/n) : Yes
What are you trying to achieve?: I’m trying to display a keyboard input by the participants on the screen so that they can see it and are able to change their input.

What did you try to make it work?: As I am quite new to PsychoPy and coding, I tried following this post: Writen response
but I keep getting error messages.

What specifically went wrong when you tried that?:

f 'escape' in keys:
                       ^
SyntaxError: invalid syntax 

Hi @lilly, if that is your actual code, then there is a typo in your if statement.

Here is an example of using code in Builder to show user input on screen.


https://run.pavlovia.org/demos/textinput/html