readChar

Waits for the user to press a key, and returns the integer ASCII code of that key. This function does not work for keys that are not letters, digits or symbols. If you need to detect other keys, please see waitKey.

Usage

    ascii = readChar();
    if ascii == 'a' then ...