I am trying to capture ctrl+z key combination in javascript with this code:
Untitled Documen
This Plugin Made by me may be helpful.
Plugin
You can use this plugin you have to supply the key Codes and function to be run like this
simulatorControl([17,90], function(){console.log('You have pressed Ctrl+Z');});
In the code I have displayed how to perform for Ctrl+Z. You will get Detailed Documentation On the link. Plugin is in JavaScript Code section Of my Pen on Codepen.