Changed KeyModifier enum to enum class