require an external module when window.shortcut is unavailable.