For that distance, direct connection of USB cables might work - it's on the borderline of USB 2.0, and (strangely) beyond the specification of USB 1.1.
A powered USB hub and a good quality USB cable would solve that problem. And the lengths of the USB cables from the hub to the keyboard and mouse wouldn't be a problem.