Move keybinding hooks to new file

Fixes #195