usb return data

how would you go about reading the caps lock data on a leonardo?