Detect if Caps Lock is On Try to press the "Caps Lock" key inside the input field:

it doesn't work but the code is fine