Keyboard key

I attach a button (btn) the following script:

on (press, keyPress “<Enter>”) {b._visible=1;}
If I want such as follow:
btn.onPress, keyPress “<Enter>”=function(){b._visible=1;}
either press the button or enter key will enable mc b to appear.
Please correct the error. Thanks.