Bugfix for gallery keyboard navigation overriding slideshow keyboard navigation

due to the bug the module was effectively requesting the previous/next page thus closing the slideshow
Set key codes once
Add explicit check for cooliris object
Merge pull request #168 from mstoltenburg/master

Bugfix for gallery keyboard navigation overriding slideshow keyboard navigation