Only bind key handlers if domElement is the document

This is for the trackball controls