Add getDocumentHandle method
Add support for key bindings