fires when the Enter key has been pressed
view.attachEvent("onEnter",function(ev){ // your logic here });