With the key <RETURN> or are finished data inputs by the homecomputers like the C64/128 or VIC-20. After using the key BASIC commands will be executed, data inputs (through the INPUT command) will be processed and entered command lines will be saved into the BASIC-RAM. Also the key is called enter key.
The controlling of the key programs isn't easy, because the function of the key is always there! The following methods show ways for controlling the key :in
With the BASIC command GET
By using the ASCII code 13 for <RETURN> with CHR$(13):
10 PRINT "Please, push any..." 20 PRINT "...key"; 30 GET A$ : IF A$="" THEN 30 40 IF A$ = CHR$(13) THEN PRINT ":<RETURN> - The program ends here !" : END 50 PRINT ":"A$ : GOTO 20
The program ends with pushing the key. Each key (without the key ) can be pushed.