Either one works fine. This device is not dependent on fast speeds, USB 3.0 ports are backwards compatible so you can use 2.0 devices in the 3.0 port only using 2.0 speeds due to the device not being 3.0
Only benefit of a 3.0 is for an external hard drive as it will help with faster read/write speeds but mice and keyboards are not going to see a difference in speed.