I know, that's why I am asking for the best middle ground. My LEDs are switched by a transistor, so the IC shouldn't matter.
A single MOSFET? You would reach the 500mA power budget at ~24 keys unless you are using a capacitor circuit to dampen current draw over time. The USB spec sets an absolute limit, not an average.
well leds need a constant current
No. LEDs are typically run with pulse width modulation. You can control the brightness by varying the duty cycle. Keyboards would be blinding if you ran them at constant current.
Keyboards with individually controlled backlighting have the LEDs in a matrix (just like a keyboard matrix), with only one section lit at a time (just how a keyboard matrix is strobed only one column at a time).
When you know what led you will have down the line you use resistors and pwm because as you know the forward voltage of the LED and the voltage of the circuit the resistor + LED act as a constant current drain.
Here we do not know the forward voltage -> so we need constant current, and yes you could cobble a similar effect with pwm and measuring the voltage across either resistor or LED, it would be pretty hard to do so without either the user only using 1 type of LED or having 4 traces per LED.
it is also why i explain the thing with the resistors.
And no one talked mosfet not even a single transistor or high current LED although it is a problem i forgot about low value resistors reds, they will use more current and may trip over-current protection on some PC or fry the motherboards on some macs.
As for the USB limit it is 500mA in usb1, went up to 900mA in usb3 spec and usb-C is 5A so plenty of space even with the minimums (really some usb port provide much more current, 1A ports are pretty common place on USB2 laptops).
I tried to keep things short-ish in my original post, and give a possible solution.
Or an other one is just to do like many manufacturer do and put a random value with pwm and pray nothing goes wrong.