Validate HTML in keys and add soem docs
Add some tests for key validation