I tried a very simple CapsLocker and believed, that its not working, but when I also send charachter (after the KEY_CAPS_LOCK) so tis key came in uppercase.
I also could not see, that the CAP_LOCK LED on trhe keyboard goes on.
Then I started a virtual maschine (my host is an mac-book-air) and...