Only bind key handlers if domElement is the document

Otherwise, the key handlers take over the window, even when the three.js graphic is in a div.