Provide a better way to map to a display key.

This fixes #9668.

cc @redmunds 
Thanks for your suggestion. But we still need to call `toLowerCase()` for `match[0]` since we only keep the lowercase key names in the map.