Minor refactor
New method to detect key press based on key binding

Instead of tracking changes to the document, we bind directly to the
keys.
Only use one keymap file
Merge pull request #18 from lewtds/binding

New method to detect key press based on key binding