Check for invalid keys