(Key.isDown(Key.CONTROL)) w/ OTHER keys

I can only seem to get the keyDown command to work only with special keys like Control and all that. How can I have something like “A” work instead? :m:

(Key.isDown(65))//65 is “a”

…Mind explaining how that works? :whistle:

ASCII, each key has a set number. If you go into a program like word (make sure you have numlock off) and hold down alt and type in a number in the number key pad (on the right han side of your keyboard) you will find it creates a letter or a symbol. I think the numbers are different for flash though. Hope it helps

You could also use this, and then simply change the key:


Key.isDown(Key.getCode("a"))