This isn't the code for my game, but this does the same thing. When you hit 'i', all 3d stops and 2d disappears...
rem Standard Setup Code
sync on : sync rate 60
color backdrop rgb(0,0,128) : hide mouse
set text font "arial" : set text size 12 : set text transparent
make object cube 1,10
do
yrotate object 1,wrapvalue(object angle y(1)) + 2.0
text 0,0,"This is example text, what what happens when you type 'i'. This is go away and 3d will stop :(."
if inkey$()="i" then input "Please input your name >> ",name$
set cursor 0,10
print name$
sync
loop
I am the very disease you pretend to be.