function footerDetailsPanelEscHandler(e){
  if (e.keyCode === 27) { // esc keycode
    toggleFooterDetailsPanel(e);
  }
}
/* if the Esc key is hit, the panel will close */
if the Esc key is hit, the panel will close
if the Esc key is hit the panel will close
function footerDetailsPanelEscHandler(e){
  if (e.keyCode === 27) { 
    toggleFooterDetailsPanel(e);
  }
}
function footerDetailsPanelEscHandler ( e ) { if ( e . keyCode === 27 ) { toggleFooterDetailsPanel ( e ) ; } }
if the Esc key is hit, the panel will close
if the Esc key is hit the panel will close
// esc keycode