Maybe
Code:
inkey

could be an option.

Example from Manual, checking the ENTER Key:
Code:
STRING* entry_str = "                      "; // long empty string
...
var key = inkey(entry_str); // wait until [enter] pressed
if (key == 13)
  process_entry(entry_str); 
...

STRING* string1 = "";
STRING* string2 = "";
...
while(1) {
   if (inchar(string1) == 13) break;
   str_cat(string2,string1);
}

See Manual "Input|Output/Key mapping" for some scancodes.

Greets


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;