Marc F. who manages
www.dbheaven.com
has a good article on the subject.
http://www.dbheaven.com/thebook/chapter05.php
he also dropped a groovy timed input snippet on the RGT boards ages ago. You might like to ask him for a copy.
Im using it in DT for my RPG game and I can also access secret commands in my game with its method.
basically
in the main loop detect its usage
rem ------------------------------------------------------------------------------------------
rem DETECT COMMAND LINE USAGE
rem ------------------------------------------------------------------------------------------
IF KEYSTATE(62) THEN chatmode = 1
IF KEYSTATE(63) THEN chatmode = 0
IF chatmode = 1
GOSUB CheckInput
TEXT 10,sh(1)-60,text$+"]"
TEXT 10,sh(1)-80,"message :"+finaltext$
` detect for secret words
gosub secretwords
replymsg$ = "mplay..."
TEXT 10,sh(1)-100,"reply msg:"+replymsg$
ELSE
ENDIF
then in this example i used a gosub to do the actual work
`---------------------------------------------------------------------------
` COMMAND LINE CHAT/ SECRET INPUT ---------------------------------------
`---------------------------------------------------------------------------
CheckInput:
oldkey$ = newkey$
newkey$ = INKEY$()
IF KEYSTATE(14)
IF LEN(text$) > 0 THEN text$ = LEFT$(text$,LEN(text$)-1)
ELSE
IF RETURNKEY()
IF text$ <> "" THEN finaltext$ = text$ : text$ = ""
ELSE
IF newkey$ <> oldkey$ THEN text$ = text$ + newkey$
ENDIF
ENDIF
return
and the secret word gosub ill leave hidden as its not a requirement here so remove that gosub call.
I will show u one secret command so u know how it would be setup
its not in a gosub so replace the call with this component
` wolf easter egg
if finaltext$ = "wolf"
finaltext$ = "looks like a fullmoon tonight"
play sound 4
endif
naturally u can play sounds or report back text or do anything really.
and thats it in a nutshell.
clear as mud?

good
http://www.lunarpixel.com/ is my new site