how to make a page relode on a keypress in js

JavaScript
location.reload();

Source

Also in JavaScript: