select text of cmd when clicked