When using a USB2 (or 3) hub, powered or not, the port order appears to matter when initializing the usb host.
When a keyboard and midi are both plugged in, only one of Midi or Keyboard will work.
hub-kbd-midi-swap-midiworks.txt
hub-kbd-midi-kbdworks.txt
hub.txt
direct.txt