Go to Twitter\'s login page and type the following in the console:
window.addEventListener(\'keypress\', function(e){console.log(\'hello\')}, true)
It's a problem with console.log. try this instead:
window.addEventListener('keypress', function(e){alert('hello')}, true)