Move keybinding hooks to new file

Fixes #195
Merge pull request #197 from david-christiansen/keydef-file

Move keybinding hooks to new file