Validate that the supplied key_type is something this module can handle
Fix incorrect key types