'How to detect control keypress/keydown inside textarea?

Is it possible to detect e.ctrlKey inside a text input field? As soon as the cursor is inside a text field, I only get keyup events:

enter image description here

The text field is a textarea:

enter image description here

The event listener is set correctly because I detect keypress events for normal letter keys, as well as keydown events when the textarea is not focused.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source