Converts a key value to upper case, if applicable.
a key value.
Return: the upper case form of @keyval, or @keyval itself if it is already in upper case or it is not subject to case conversion.
See Implementation
Converts a key value to upper case, if applicable.