What I would do is a repeat loop:
repeat
until returnkey()=0
This loop will wait until the return key is released, and then you can wait until it is pressed.
sync on
do
Rem ths prompts the user to give hi/her name, and then greets them
Input "Enter your name>" ;name$
Print "Hello " ;name$
rem this prompts the user to enter a number
Input "Please enter a number:" ;a
Input "Please enter a number:" ;b
rem wait until returnkey is released
repeat
until returnkey()=0
rem this is the math eqations
c = a + b
print c
rem and the end screen sequence
Print "Press enter to exit"
if RETURNKEY() = 1 then end
sync
loop
Or you can replace
Print "Press enter to exit"
with
Input "Press enter to exit",a
But I recommend the first way, because the user can type silly things into the program before pressing enter with the second method.
Hope that helped!
TheComet

Make the path of your enemies easier with Waypoint Pro!