kat*_*ugh 5

很简单:

$(document).observe('keydown', function (e) {
    switch (e.keyCode) {
        case Event.KEY_LEFT:
            e.stop(); // prevent the default action, like horizontal scroll
            window.location = '/read/prev';
            break;
        case Event.KEY_RIGHT:
            e.stop();
            window.location = '/read/next';
            break;
    }
});
Run Code Online (Sandbox Code Playgroud)

http://jsfiddle.net/pMts6/

Event.KEY_LEFT并且Event.KEY_RIGHT是它们对应键的数字代码的便利常量.

阅读http://api.prototypejs.org/dom/Event/上的Prototype事件.