yes you can find the key code using the javascript
you can write document.addEventListener() method\
generally F5 key has 116 keyCode