You can add the Text Entry object to the scene (is invisible) and des/activate the text input capture, the object save the captured text in a string. Then you can use the string for whatever you want
how to ask to input a name and then print "Hello, <name>!"
Example (left click to des/activate the text entry):
Note: variable checkNext is my "elif or else if", other way GD will read:
Text entry is desactived ===> Activate it
Text entry is now activated ===> Desactivate it