Key.getCode();
KeyP = new Object();
Key.addListener(KeyP);
KeyP.onKeyDown = function() {
trace(Key.getCode());
};

ciao