never tried it as hid kb but for a hid cdc anyway the data you need to send must be chunked into usb-tx buffer sized lumps
then sent a multiple usb transmissions.

what have you tried ?