If you use a retail image of windows instead of recovery image supplied for Surface laptops, your keyboard and touch pad will not work while install progress. Because retail windows images does not have device drivers for laptop keyboard and touch pad.
Fortunately, if you have some kind of usb hub, you can connect tethered keyboard and mouse to the hub. I was able to use keyboard and mouse when I had same problem.
I hope it will help.