Press any key to get the JavaScript event keycode
Usage example (press ctrl+z):
<script>
var isCtrl = false;
$(document).keyup(function (e) {
if(e.which == 17) isCtrl=false;
}).keydown(function (e) {
if(e.which == 17) isCtrl=true;
if(e.which == 90 && isCtrl == true) {
$('.js-link-to-save-main-form').trigger('click');
alert('You pressed STR + Z');
return false;
}
});
</script>