Fix #324
Validate key in /set command