refactored typing.js to also use Keys.shortcutHandler