So if I press "s' it will input "ss" into the cell, and then when I press enter it will auto-move to the next cell down, but nothing ends up getting saved into the previous cell. If you take a look at your keyboard, you’ll find that the light for the scroll lock button is turned on. When it comes to changing how a keyboard key works on Windows 10, the go-to app for the job is AutoHotKey. Approach 1: Add an event listener onkeydown on the window. According to the KeyboardEvent documentation on MDN , the use of event.keyCode is deprecated. My issue to prevent the keyboard key up and down arrow. 567. Here’s how you can disable a key on the keyboard on Windows 10. Customize input type date. If you switch to "Text Box" or "Currency Box" as the input type instead of "Number Text Box", it will no longer accept up/down key inputs. When the input widget type is number. We should use event.key instead. Given an HTML element containing the