Solution -
document.observe('keydown', function(event){
if(event.keyCode === 8) {
console.log("***********************CODE " + event.keyCode);
//backspace = true;
}
});
My goal is to prevent users being navigated away from the page on pressing the backspace key