I am very new to the digispark and I am only partly familiar with the DigisparkKeyboard\digikeyboard.h
library.
I am able to send keystrokes to the PC, but I also want to check whether CAPSLOCK is active on the host machine and also be notified when it's pressed.
It is not directly possible using existing Arduino Libraries or Digispark Libraries.
But, here is a crude solution written in C. If you want to see actual implementation then refer this