Hello

I want to create a JS-Code that can check what buttons people press.

For example:

When people wants more information about the site:

if (press == Ctrl + I) {
Alert('More Info Here!');
}


Of course that code didn't work, so I tried something similar:

if ((e.ctrlKey && KeyCode == 'i'.charCodeAt(1)) && area.offsetHeight) {

alert('more info?');
}


But also that don't work, what am I doing wrong?

Thanks for reading,

Niely