[mx]Basics- onkeyPress events

Hi !!

I was just trying out this code


on(keyPress "<Enter>")
{
	
	message.text="You pressed a Key";
}

This is the action on a button named b1. “message” is a dynamic text field.

This code does not work for certain keys (backspace,esc,delete and enter keys…)for all others it works…What could the reason be?

Also…onClipEvent on a movieclip m1 (for any parameter)also does not work…

The movieclip,textfield and button are on frame 1 on different layers…I’m trying to learn the basics and I’ll be happy if anyone can help me on this…Thanks!