Added detection for event.metaKey and stopped preventDefault when true (so browser/OS shortcuts aren't cancelled)