In Chromium, the rectangle is moving, when the left or right arrow keys are pressed. In Firefox, the rectangle does not move, when pressing the arrow keys. To check, what's in keyCode, I added console ...
In JavaScript or jQuery you often need to find out which key was pressed. Unfortunately, we don't have it as easy as comparing it against a string like "esc" or "space bar". Each key on the keyboard ...