USB Keyboard Parser Tool is an automated script that can extract HID data from .pcap or.pcapng files. First it attempts to extract the data using the filter "usb.capdata", then with "usbhid.data".
python3 Usb_Keyboard_Parser.py <pcap file/path to pacap file>