[solved] How to disable enter key before text input form is shown
Hi all!
I am currently designing an experiment, in which 6 letters are presented on the screen for a short time. After this presentation, participants are to type in all letters they can recall. I am using the text input form to collect this response. This is an unspeeded response, participants can decide when they want to proceed to the next trial. Therefore I enable the enter key to end the response and to proceed to the next trial.
I am having the problem that pressing the enter key before the text input form is even shown will cancel the next response. The text input will only appear for a brief moment and then disappear. Is there any way to disable the enter key untill the text input form is actually shown? For example, if I accidentally press the enter key twice after I type in my response on one trial, I cannot work on the next trial, which is unfortunate.
I would be thankful for any help ![]()

Comments
The easiest way to flush pending keypresses is probably to insert a
keyboard_responseitem before yourtext_input, and set the timeout to 0 and leave the box marked 'Flush pending keypresses' checked. Because of the 0 ms timeout, thekeyboard_responsewill not do anything, except flush all the keypresses that were still pending.Hope this helps!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Easy and worked, thanks a lot again!