convert enum Key into enum class

and to be able to ret rid of the KEY_ prefix, change enum Tpc's members
by adding (back) the prefix TPC_