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:
window.onkeydown - the same.
hi, welcome to the community
What you may want to do is investigate a custom component or imported js module