change data structure of children in LOGONode as well as
constructing strategy of list-nodes.
Also add two key events so use up and down could find previous commands.