Instead of just F1 try Fn + F1
Enter the BIOS find Action Keys Mode → set it to Disabled → Save and restart.
Force shutdown by holding the power button for 10-15 seconds.
Remove the battery...wait for 30 sec-reinsert.
See also this thread on clear TPM:
https://h30434.www3.hp.com/t5/Notebook-Hardware-and-Upgrade-Questions/Clear-The-TPM/td-p/9110571