Validate key input in web ui