Hide dialogs on keyboard shortcuts

Paired with @martyhines

Fixes #57