Before you start Hard Reset procedure make sure that your phone battery is not less than 80% charged. Don't forget to take out your Sim and Memory card and also do a backup of all important data from your mobile.
How to factory reset BlackBerry KEYone
Hard Reset will erase all of your data
All described operations you are doing at your own risk.