Key class handle validation.