Handling key events on window

Open the console and see the logs made when a key is pressed inside the input below