To detect arrow keys, please use onkeydown (see ). ... What characters can be used for up/down triangle (arrow without stem) for display in HTML? 567. 0. Since the up & down arrow are the only arrow keys that have an effect on movement, I simply added an if statement to verify that the request wasn’t coming from either of those keys. I’ve attached the updated script. Then it gets really strange - when I have a cell highlighted and press any key to input text, it gets duplicated. My issue to prevent the keyboard key up and down arrow. Given an HTML element containing the