I'm afraid there's no way to do that at the moment. Espruino's USB HID uses only one USB endpoint (running from the Espruino to the PC), so there's only ever one-directional data transfer.
Having said that, you may not need it depending on what you're planning. As far as I know, keyboards send the key that's pressed - but for instance that would just be the 'A' key - there's no understanding of what is upper and lower case. That is handled by the PC.
If you press 'shift-A' it sends 'A' but with a 'shift' modifier. Caps lock doesn't have any effect on what is sent back.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm afraid there's no way to do that at the moment. Espruino's USB HID uses only one USB endpoint (running from the Espruino to the PC), so there's only ever one-directional data transfer.
Having said that, you may not need it depending on what you're planning. As far as I know, keyboards send the key that's pressed - but for instance that would just be the 'A' key - there's no understanding of what is upper and lower case. That is handled by the PC.
If you press 'shift-A' it sends 'A' but with a 'shift' modifier. Caps lock doesn't have any effect on what is sent back.