> In most browsers the F5 key refreshes the page. Is there any way to disable this key?
Nope, no way possible. You have to work around that however you must.
If it is really critical, you could use something like Electron to embed your application in a page so that it doesn't have the usual browser buttons and options.