Validate keys