Only bind key handlers if domElement is the document