JSFiddle - React, Tailwind, and code Playground

JavaScript

$(document).on('keydown', function(event) {
    if (event.which === 77 && event.ctrlKey) {
        alert('You pressed ctrl+m');
    }
});