Neve, Never, Never use GOTO it is bad coding practice!
Depsite which with Whisper Winds suggestion the code would still be in the loop and there will be errors down the line.
I would use a REPEAT ... UNTIL for the menu code, which will then exit back to your main loop when finished.
Here ... a small demonstration. Consider the rotating cube to be your main game and the rotating cylinder to be your menu. Access the menu by pressing the SpaceBar and exit by pressing Return:
Global Speed as float = 1.5
Global oCube as integer = 1
Global oCylinder as integer = 2
make object cube oCube, 10
make object Cylinder oCylinder,10
position object oCube , -10,0,0
position object oCylinder , 10,0,0
set object cull oCylinder , 0
position camera 0,0,-30
point camera 0,0,0
sync on
sync rate 60
do
xrotate object OCube , wrapvalue(object angle x(oCube) + Speed)
sync
if spacekey() then Gosub Menu
loop
Menu:
Repeat
xrotate object OCylinder , wrapvalue(object angle x(oCylinder) + Speed)
sync
until ReturnKey()
return