For the NG client there are a lot of components and services which you can install through the Web Package Manager.
(right click the Web Packages node in the solution explorer and select the first option: download/install
In the manager, goto the service section, install the Keylistener service and close the manager.
Now scroll all the way down in de solution explorer and you will find the key listener service as part of the plugins node.
If you didn’t already guess, you will need the keylistener plugin.
It needs to be registered to an element (most likely the password field in this case) at the onShow method of your login form
The callback contains 7 parameters, the last one is ‘capsLock’ which is actually a Boolean value and while typing in your field, it will return either true or false.