Displaying/logging multiple character input while stimulus present
I am trying to design a math study that asks children to enter the answer to an equation and press 'enter' to move on to the next question. I tried using @sebastiaan's student number example, but my problem is, the math problem displayed on sketchpad moves on to the next question with only 1-keypress. This is problematic since my answers also include double-digits. Basically, I need the sketchpad with math equation stimulus to wait until a child inputs the answer and presses 'enter' and record child's response. I would also like to display child's answer simultaneously below the arithmetic problem.
Any help would be appreciated, and thanks in advance!