set key for  copy, paste, and undo, open undo tree