Validate key in /set command