enum KeyType into enum class

not sure though about its purpose nor why not using enum class key
instead