function simulateCtrlEnter() {
var event = new Event('keypress');
event.ctrlKey = true;
event.keyCode = 0xA;
dispatchEvent(event);
};
window.onkeypress = function(e) { alert(e.type + ' ' + e.ctrlKey + ' ' + e.keyCode) };
setTimeout(simulateCtrlEnter, 2000);