Вы можете добавить прослушиватель событий keydown
в ваш документ.
document.addEventListener('keydown', function (event) {
// Check that the key that is down is the “Escape” key
// And that the meta key is down (cmd on Mac, the windows key on Windows)
// And that the shift key is also down
if (event.key === 'Escape' && event.metaKey && event.shiftKey) {
// Do things!
}
});