We have an input field with some keydown logic, it looks like the following:
When the IF block is disabled, keydown event prints correctly. But when the IF block is enabled, nothing happens when user enters characters in the field. The logic in the IF block runs fine when a “submit” button is pressed, there’s nothing in there that could break keydown (and it comes after the print block anyway).