I found this: Detect caps lock on/off using jQuery [duplicate]
It works when I use it with <input> tags. But it doesn't work when I use it with  Html.TextBoxFor or Html.PasswordFor . 
Is it possible to detect the state of CapsLock key on a Html.TextBoxFor and Html.PasswordFor using jQuery?
 
    