Using the Rock3B USB OTG port as a USB HID keyboard for a windows computer

I am trying to use the USB 3 OTG port on the ROCK3B (running debian 11 OS) as a USB HID keyboard on a windows device and I wanted to know if it’s possible.

I came across a thread on this forum which tried a similar thing but that was for a ROCK 3A board which used the ubuntu image.

One of the difference I became aware of is the configfs file system in ubuntu which I could not figure out for debian.

I would appreciate if someone can guide me in achieving this.

Thanks & Regards,

Yash