
ch = Key_Scan();
if (ch != 0) {
    /* a key was detected */
    ...
}
