 key, and if one has been pressed, places it into the
specified variable.</p>

<pre>
loop:
  print "Infinite loop until m or Esc is pressed..." ;
  getkey x
  if x = 'm' then goto done
  goto loop

done:
  print "Finished loop!"
</pre>




<br />

<a name="gosub"></a>
<h3>GOSUB</h3>
<p>Takes a label. It executes a subroutine, which must be finished with a RETURN instruction. You can
nest GOSUB routines up to 10 times. Example:</p>

<pre>
print "About to go into a subroutine..."
gosub mylabel
print "Subrouti