[code]stage.addEventListener(KeyboardEvent.KEY_DOWN, ceinput);
function ceinput(e:KeyboardEvent):void
{
//e.charCode显示输入的字符编码(会区分大小写)
//forChareCode会将字符编码转义成输入的字符显示出来
trace(String.fromCharCode(e.charCode),e.keyCode);
}[/code]