key, keyw

Format:
key()
keyw()
Result:
Number
Description:
Returns the ASCII value of a pressed key. The functions keyw() waits for a key stroke event.

keyw() returns -1, if no pressed key was found. This function is well suited to terminate loops in a controlled way.

e.g.:
SPECTRA> s1 = key()