Here's the fragment of the js code for your reference. At the place where I have written e.keyCode, the text keyCode gets slashed out and a yellow bulb appears alongside it.
document.onkeydown = function(e) {
console.log("Key code is: ", e.keyCode)
}