Add keybinding tests. Fixes #130.