I need to detect the keycode for a custom search box on my website, but the keycode always returns as zero on Chrome for Android (except for backspace, which returns 8). Has
change the type of the input to tel :
this will let you log the keyCode but it doesnt log the backspace, and it might force the keyboard on mobile to only numbers.