help in an ongoing embedded project

Job ID: 35963409

Budget: ₹600 – ₹1,500 INR

A keyboard is connected to the usb host of an STM32F407 MCU and the same MCU connects to the PC as a USB HID device through another port.
I am able to send all data to the PC via this MCU.
I want to decode function key commands and change them to certain different commands and send it to the PC. However I am not able to detect function commands on the MCU.
I am using STM32CubeIDE and A keyboard with function key.