Index: node_gallery.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/node_gallery/node_gallery.module,v
retrieving revision 1.18.2.96
diff -u -p -r1.18.2.96 node_gallery.module
--- node_gallery.module	30 Oct 2010 02:09:53 -0000	1.18.2.96
+++ node_gallery.module	30 Oct 2010 12:03:56 -0000
@@ -593,6 +600,7 @@ function _node_gallery_image_view(&$node
   $relationship = node_gallery_get_relationship(NULL, $node->type);
   $config = $relationship['settings'];
   if (!$teaser) {
+    drupal_add_js(drupal_get_path('module', 'node_gallery').'/js/ng_keyboard_shortcuts.js');
     $gallery_node = node_load($node->gid);
     $crumbs[] = l(t('Home'), NULL);
     $crumbs[] = l(t('Galleries'), 'galleries');
Index: js/ng_keyboard_shortcuts.js
===================================================================
RCS file: js/ng_keyboard_shortcuts.js
diff -N js/ng_keyboard_shortcuts.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ js/ng_keyboard_shortcuts.js	30 Oct 2010 12:07:00 -0000
@@ -0,0 +1,16 @@
+Drupal.behaviors.initKeyboardShortcuts = function(context) {
+  $(document).keydown(function(event) {
+    if (event.which == '37') {
+      // left arrow
+      if ($('td.image-navigator-prev a').length > 0) {
+        window.location.href = $('td.image-navigator-prev a').attr('href');
+      }
+    }
+    if (event.which == '39') {
+      // right arrow
+      if ($('td.image-navigator-next a').length > 0) {
+        window.location.href = $('td.image-navigator-next a').attr('href');
+      }
+    }
+  });
+}
