convert unnamed enum into enum Key

but converting into enum class requires some more work. And mostly for
that reason can't yet get rid of the "KEY_", as it clashes with enum Tpc
(which too hasn't yet been converted into en enum class)