JSFiddle - React, Tailwind, and code Playground
JavaScript
$(document).on('keypress', function(e) {
if(e.which == 8 || e.which == 13) { //-- or 13
var x = document.getElementsByTagName("BODY")[0];
x.style.backgroundImage = "-moz-linear-gradient(--90deg, #004158 0%, #005472 100%)";
x.style.backgroundImage = "-webkit-linear-gradient(--90deg, #004158 0%, #005472 100%)";
x.style.backgroundImage = "-o-linear-gradient(--90deg, #004158 0%, #005472 100%)";
x.style.backgroundImage = "linear-gradient(-180deg, #004158 0%, #005472 100%)";
e.preventDefault();
}
});