Code:
$('#Inputfield').keyup(function(e)
        {
            if(e.which == 13)
            {
                functionXyz();
            }
            else
            {
                functionZyx();
            }
    });  
$(document).keyup(function(exit) {
              if (exit.keyCode == 27) { functionZzy(); }
});
Question: How to remove the keyup event handler of keyCode == 27 and keep the other $(document).keyup event handlers intact?
 
     
     
     
    