Wirless keyboard and mouse wont work during installation

I have a G19 and a mouse. And both of these wont work when i try to do a installation of Windows 7. It will get up to the first dialog screen but i cant go any further due to the devices not working. In the bios the USB legacy is enabled. and the mouse also works in the bios.
This the MB i have. https://www.asrock.com/MB/Intel/Fatal1ty Z270 Gaming K6/index.asp
Anyone with suggestions i should try. Thanks.

I have resolved the problem with the mouse and keyboard through the Bios i found PS/2 emulator which solve the problem. But now i have another problem.

When i try to install windows on disk 0 partition 4 windows cannot be installed on drive 0 partition 4. How do i fix this?

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.