You will see a menu with text options (e.g., Reboot system now, Wipe data/factory reset). The touchscreen will not work here.
Select Erase all data (factory reset) .