Can't get to BIOS on an MSI motherboard
Thanks for the answers! I'm sure these answers will be helpful for somebody facing this problem. But it all didn't work for me.
I solved this problem by switching my current USB keybord to my old PS/2 keybord. After that I was able to enter BIOS with the F2 key. The problem with USB keybords is they are not recognized by the computer until the OS starts to load. So switching to a PS/2 keybord will do the trick.
Go into windows, and shift+click the restart button, then choose to change the UEFI settings when you get the option to do so.
You can also start the laptop and quickly release and then press and hold the power button. After this press dell rapidly when starting the PC again.
Windows 10 has a fast boot option which makes going into the BIOS more of an issue.
Here's an old hat trick that just might work for you, and others in similar situations. I don't know if this will work on your specific motherboard.
Turn off the computer. Then, before turning it on, press and hold a key on your keyboard. (Any key will do. Control, Windows, Print Screen and such are usually "safer" in light of any firmware on extension cards etc.) Now, while holding that key down, turn on the computer. Do not release the key before the OS starts to load, if it does. (If the OS starts to load, this trick didn't work for you.)
What this does is basically cause the BIOS to see a "stuck key" condition on the keyboard; the same as if a keyboard contact was actually stuck, but in this case, triggered intentionally. Many BIOSes treat this as at least a warning, and will give you a diagnostic screen telling you to check your keyboard and do something (most often to press a key) to continue booting. This diagnostic screen very often includes instructions on how to enter the setup utility as well and now that the BIOS is actually waiting for you to do something, it's often a trivial matter to get into the setup utility.