Add a way to position items by arrow keys

Also, fixed a possible bug - when you move/delete selected items, and
then make undo, we didn't recalculate the new selection