Hardware Problem while formatting computer

Hi guys,
My keyboard and mouse suddenly stop working during the windows installation process ( actually after the formatting is completed), I have tried with external powered USB hub, but I didn't succeed, please help me to resolve this problem
