Blocks until a keyboard event happens, then returns that event's name or,
    if missing, its scan code.

def read_key(suppress=False):
    """
    Blocks until a keyboard event happens, then returns that event's name or,
    if missing, its scan code.
    """
    event = read_event(suppress)
    return event.name or event.scan_code