Computer scienceProgramming languagesJavaScriptInteraction with a browserDOM Events

Keyboard events handling

In parentheses

Report a typo

What do you need to write in parentheses to get an event handler that works after releasing the left Ctrl only?

document.addEventListener("keyup", function(event) {
  if (...) {
    return event;
  }
});

Write only the missing part.

Enter a short text
___

Create a free account to access the full topic