Mouse and Keyboard not working on installation

Hello, I have been trying to install armhf for Raspberry Pi 3 B, and whenever it starts to install, my mouse and keyboard turn on for half a second and then turn off. I tried installing arm64 and it installed fine, but was super slow. How do i get my mouse and keyboard working. I used a 8GB micro sd to boot.