$(document).on('keyup', function (event) {
var key = event.which;
switch (key) {
case 8: // backspace
case 33: // Page Up
case 37: // <-
console.log("Назад");
break;
case 32: // space
case 34: // Page Down
case 39: // ->
console.log("Вперед");
break;
}
});