convert enum UpDownMode into enum class