fix #5841: set selection to newly created keynode