Moving onKeyPress to UI.
Keybindings are added through bindKey now.
Adding method to block keyboard shortcuts while modal dialogs are active
Checking for whether the bindings exist before calling them.
Skipping key bindings when input elements are active.
Merge pull request #29 from odraencoded/modal-dialog

Fixing problems with keyboard shortcuts