I want a button to be pushed when the user presses ctrl+enter in JavaScript. How can I achieve this? When using the below code and pressing ctrl, nothing happens. I'm also not sure how to use two keys at once.
document.addEventListener('keypress', (event) => {
const keyName = event.key;
alert('keypress event\n\n' + 'key: ' + keyName);
});