Correct caret focus on mouseup, and fix climb()