Hm, I believe that JS only checks that the shift key is pressed.
Anyway, with PHP being use typically as a server-side processor, for you to be aware of whether the caps-lock key is pressed, well, you'd have to pass that information to the server which defeats the point of PHP detecting it (not to mention you'd need to refresh the page / make an ajax call).
However, if you were doing this as a desktop application with PHP as the driving-force behind it, you could write an extension to find the caps-lock-key's state. I may have a look into doing that now.
Mark.