Update shortcut handling. Add better debugging.
First release of shortcuts. (Issue #74)