How: To Activate F5 Key In Keyboard
If none of the above works, your keyboard may need cleaning or replacement — but try an external keyboard first to confirm. F5 activation takes less than 2 minutes via Fn Lock or BIOS. Don’t assume the key is broken until you’ve tested these steps.
Example AutoHotkey script: