You need to enter upload mode by first pressing Boot, then press and release Reset, then release Boot.
After upload you may have to unplug the board and plug it back in.

You can also "erase all flash before uploading" but it takes a long minute!

I have no experience with keyboards and mouse on ESP32, as I consider a Rasp pi a better choice for 'that sort of thing'.