Copy a text input field to the clipboard