Hi!
I need to add global events to identify if user pressed the "Enter" key on keyboard.
I've tried to add window.addEventListener('key...)
logic but it doesn't work.
I also tried to use something like that: document.body.onkeydown
or window.onkeydown
- the same.