Learn how to find out if capslock is on inside an input field with JavaScript.
Read on how to do it in this link: https://www.w3schools.com/howto/howto_js_detect_capslock.asp
Detect if Caps Lock is On
Try to press the "Caps Lock" key inside the input field:
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_detect_capslock
Tip: Read more about the getModifierState() method in our JavaScript Event Reference - getModifierState().