check_key