JSFiddle - React, Tailwind, and code Playground
HTML
<h1 id="wow">PRESS F11</h1>
JavaScript
var w = screen.width;
var h = screen.height;
document.addEventListener("keyup", function(){
if(w == document.width && h == document.height){
document.getElementById("wow").innerHTML = "PRESS ESC";
}else{
document.getElementById("wow").innerHTML = "PRESS F11";
}
});