keydown functions

Esc, arrow-right, arrow-left identifiers.

$(document).keyup(function(e) {
	 esc key
  if (e.keyCode == "27") { 
    $('.overlay').hide();
     left arrow
  } else if (e.keyCode == "37") { 
       $('.arrow_prev').click();
        right arrow
    } else if (e.keyCode == "39") { 
       $('.arrow_next').click();
    }
});