As a seasoned embedded software developer with over 3 years of experience, I have a strong understanding of MCUs including ESP32, STM32, Atmega, Arm, and cortex-M, as well as experience working with various communication protocols such as SPI, I2C, UART, CAN, and Modbus. I am confident that I have the necessary skills to help you decode function key commands on the STM32F407 MCU and change them to different commands that can be sent to the PC. I am also familiar with STM32CubeIDE and have experience working on USB HID devices. With my expertise in MCUs, communication protocols, and USB device development, I am well equipped to help you achieve your goals.