function reportKeyDown(event:KeyboardEvent):void
{
trace(
"Key Pressed: " +
String.fromCharCode(event.charCode) +
" (character code: " + event.charCode + ")"
);
}
Key Pressed: a (character code: 97)
Key Pressed: b (character code: 98)Key Pressed: c (character code: 99)
Key Pressed: d (character code: 100)
Key Pressed: e (character code: 101)
Key Pressed: f (character code: 102)
Key Pressed: g (character code: 103)
Key Pressed: h (character code: 104)
Key Pressed: i (character code: 105)
Key Pressed: j (character code: 106)
Key Pressed: k (character code: 107)
Key Pressed: l (character code: 108)
Key Pressed: m (character code: 109)
Key Pressed: n (character code: 110)
Key Pressed: o (character code: 111)
Key Pressed: p (character code: 112)
Key Pressed: q (character code: 113)
Key Pressed: r (character code: 114)
Key Pressed: s (character code: 115)
Key Pressed: t (character code: 116)
Key Pressed: u (character code: 117)
Key Pressed: v (character code: 118)
Key Pressed: w (character code: 119)
Key Pressed: x (character code: 120)
Key Pressed: y (character code: 121)
Key Pressed: z (character code: 122)