The command
entry$() returns the contents of the keyboard buffer.
Input is fine for basic entry but it halts the program, so when you need to get input from the keyboard dynamically you will need to use the keyboard entry buffer.
I wrote this to peek at the entry buffer
sync on
do
in$ = in$ + entry$()
clear entry buffer
rem check final character for control characters
finch = asc(right$(in$,1))
rem backspace
if finch = 8 then in$ = left$(in$, len(in$)-2)
print "entry string > "; in$
print "last character = "; finch
sync:cls 24
loop
Formerly OBese87.