Keypress help please

hi i have mx 2004 and would like to know how to make a keypress sctipt for example when key a is down trace (“whatever”)
please help thanks

if you place these actions in an empty document and press the enter key, it will trace “Enter key is pressed”.

createEmptyMovieClip("myClip", 0);
myClip.onEnterFrame = function () {
  if (Key.isDown(Key.ENTER)) {
    trace("Enter key is pressed");