addEventListener keyPress doesn't register key presses
javascript
Solution
You must use lowercase p in keyPress
Problem
I want to call a function when a key is pressed. I've found the `window.addEventListener(type, handler)` function to do this when `type = "keyPress"`; however, that doesn't seem to call the handler when keys are pressed. Here's the code that I'm using: ``` window.addEventListener("keyPress", myEventHandler); function myEventHandler(event){ console.log(event); } ``` After focusing on the browser window, I expect key presses to be logged in the console; however, pressing keys doesn't produce any output.