Question about key.getcode()

Question: would it be possible to test if a certain key is pressed when I don’t know in advance which key to test for?

Meaning: I get from an xml file: “v” and within Flash I want to test if the user presses v.

In other words: how can I reverse the getcode() so that I get the code for the letter v.

Hope I’m being clear.