Fix incorrect length calculation

Fixes #33.
Move global commands out of the editor sub keymap
Add binding.binding_for

For finding a binding for a particular action.