Maybe
could be an option.
Example from Manual, checking the ENTER Key:
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