changed Key enum and InputMappingType enum to enum class