I\'m trying to make the background color change when certain keys are held down. For example, when the \'r\' key is being held down, the background should be red. When the \
$().ready(function() { $('body').on("keyup keydown", function() { if(e.keyCode == 114 || e.keyCode = 121) { $(this).toggleClass("key" + e.keyCode) } }) })
Now just match the css rules with your css classes