Have you tried using another available USB port? If your keyboard has one, don't use that one as sometimes they don't have enough power to drive the USB devices like the iPod (happened to me on an older Mac). You can also try and restore the firmware on it through iTunes once it detects it.