Take a look at these two commands:
Asc and Chr
'ASC
'Get character value of the first character of a String
print Asc("A") '65
Print "A"[0] '65 - equivalent index style implementation
'CHR
'Chr returns a String of length 1 containing the unicode character of the value.
print Chr(65) 'A
Also you may want to look at the docks under keyHit() and keyDown(). You will find a table for keycodes that you can use such as:
if keyHit(KEY_ESCAPE) then ...
hope this helps.
Asc and Chr
'ASC
'Get character value of the first character of a String
print Asc("A") '65
Print "A"[0] '65 - equivalent index style implementation
'CHR
'Chr returns a String of length 1 containing the unicode character of the value.
print Chr(65) 'A
Also you may want to look at the docks under keyHit() and keyDown(). You will find a table for keycodes that you can use such as:
if keyHit(KEY_ESCAPE) then ...
hope this helps.