There is such a function:
function keyPressHandler(e) { if (!isOpen) return; e = e || window.event; var code = e.keyCode ? e.keyCode : (e.which ? e.which : e.charCode), fnList = { 110 : G.next, // n key 98 : G.prev, // b key 102 : G.zoomNormal, // f key 43 : G.zoomIn, // + 45 : G.zoomOut, // - 27 : G.close // Esc key }; fnList[code] && fnList[code](); } It is not clear how to make arrows left and right for them? The list did not find the number of the arrow