Handle copy to the clipboard