# Question about key.getcode()

**URL:** https://forum.kirupa.com/t/question-about-key-getcode/132620
**Category:** Uncategorized
**Created:** [December 30, 2004, 3:15pm UTC](https://forum.kirupa.com/t/question-about-key-getcode/132620 "2004-12-30T15:15:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flashmatazz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/flashmatazz/32/140_2.png) [@Flashmatazz](https://forum.kirupa.com/u/Flashmatazz)
#### Post date: [December 30, 2004, 3:15pm UTC](https://forum.kirupa.com/t/question-about-key-getcode/132620/1 "2004-12-30T15:15:54Z")

</div>

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.
