Need help detecting simple key press - stuck!

This must be a common problem but i can find the asnwer online. I need to have a movie play when the right cursor is pressed, and go to the first frame with the left is pressed. Can’t be too hard but can’t get it :stuck_out_tongue:

I tried the below and it works but doesnt detect a specific key.

any help much appreciated!!!

onKeyDown = function() {}

var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
trace("DOWN -> Code: β€œ+Key.getCode()+” ACSII: β€œ+Key.getAscii()+” Key: "+chr(Key.getAscii()));
};
keyListener.onKeyUp = function() {
trace("UP -> Code: β€œ+Key.getCode()+” ACSII: β€œ+Key.getAscii()+” Key: "+chr(Key.getAscii()));
};
Key.addListener(keyListener);