Call document.addEventListener instead of document.body.addEventListener.