This function is called in autosubmit.ts as isInKeyRange(e, 9, 40) to ignore keys in the legacy keyCode range 9–40 (Tab, Shift, arrows, etc.).
The problem: For modifier/navigation keys, e.key is a multi-character string (e.g. "Shift", "Control", "ArrowLeft"). Since e.key.length !== 1, the code falls through to 0, and 0 >= 9 is always false — so condition will be always false.