Turning my keyboard wireless


I just bought the Portenta H7 because of the USB C, Bluetooth, built in lipo charger and low latency capabilities to make my keyboard wireless(yes I know the h7 is overkill but it was a small device with everything I needed).

Im trying to power the keyboard using the H7 and a 3.7V LIPO battery connected via the battery connector. I even tried connecting a spliced up USB cable to power it through the VIN using 5V
I'm following the USB Host tutorial and it said I can add this:


to the sketch to get it to work.

But when I plug in the keyboard and then the lipo battery the keyboard doesn't light up or anything.

Plus is there even a way to get the USB data and transmit it over Bluetooth to my PC?