You would need to use a loop.
I would suggest a WHILE ENDWHILE loop. Those work like this: While the condition next to the word WHILE is met, everything inbetween WHILE and ENDWHILE keeps happening over and over again. When the condition is no longer met, the program leaves that loop and goes on the the next line of code. (That next line of code is the line after the ENDWHILE command)
To detect if the ENTER key is being pressed, for example, you would use the
Returnkey() command.
Returnkey() spits out a number one if you press enter, and a 0 if you are not.
So, to put the two together, you would come out with something like this. The REM command is just to make comments about the code and are not actual commands.
rem While we are NOT pressing ENTER...
WHILE returnkey()=0
rem Do nothing at all because I haven't written anything in here.
ENDWHILE
rem When ENTER is pressed, the program will move on past that ENDWHILE command.
Without my comments:
While returnkey()=0
Endwhile
<---Spell casting battle game!