def get_ascii_character_for_key(key):
    """Map a key to ASCII character."""
    if not key:
        return None

    value = key.value

    if value > 255:
        return None

    return chr(value)