Added keyboard navigation to gallery.