Default TWRP Recovery with hardware keys?

hi

i have a htc one m7 right here that is stuck on HTC logo,and needs to be flashed with a new firmware,so i unlocked the bootloader,installed TWRP recovery and was gonna start flashing but when i got to the recovery screen,it appears that the touch screen doesn't work so i can't navigate or do anything with it,so im asking if there is a way to use the recovery with the hardware keys,or even flash the ROM with fastboot or something,i need help please!