_CAPSLOCK returns the current state of the Caps Lock key on the keyboard:

 

value

toggled status

1

ON

0

OFF