javascript – How do I config html input for verification code?

I have verification code that is just a 4 digit number (e.g. 3253)
I need the user to type it from its mobile device.

enter image description here

<input inputmode="numeric"  maxlength="4"  placeholder="Code" />

Something like this works but I can still type “.” and “,” on my Android device.

How do I prevent those bad boys (“.“, “,“)?