I am unable to override the keydown event in Microsoft Edge using JavaScript; it works for all other browsers, though. It's navigating to the address bar.
Here's my on keydown event
$(document).keydown(function(e){if(e.altKey && e.key =="d"){
e.cancelBubble =true;
e.returnValue =false;
e.preventDefault();
e.stopPropagation();
alert();}});