You should use an Apple branded wired USB keyboard for this operation .
Place your Mac into a reduced component configuration in order to reset the NVRAM . I'd start by removing all drives ( ODD , HDD , SSD , PCIe drives ) , all PCIe Cards , retain the fewest number of memory modules recommended for your model .
What model do you have ?