Document input event