I believe you need to untie the event. I think it should not be keyup, but keypress or keydown.
Maybe something like this.
$ (document) .bind ('keydown', function (e) {
= ((e.which) || (e.keyCode));
() {
37:
executeMyfunction();
$().unbind( 'KeyDown');
break;
}
});
:
$(document).bind('keyup', function (e) {
() {
37:
$ ().bind( 'KeyDown');
break;
}
})
:
http://api.jquery.com/unbind/