Updated copy mode to use the system clipboard