Solved! Dell Inspiron laptop 3542 model f2,f12 keys not working

Solution
If you have Windows 10, press the Shift key while you select restart.
Start pressing the F2 key before the Dell logo appears on the screen.