title: iMacros FF: How to de-select text after EVENT TYPE=KEYPRESS ctrl+a?
body: <p>I am trying to de-select previosly selected text (select nothing) after having selected and copied it with Keypress events:</p>
  
  <pre><code>EVENT TYPE=KEYPRESS CHAR="a" MODIFIERS="ctrl"
  EVENT TYPE=KEYPRESS CHAR="c" MODIFIERS="ctrl"
  </code></pre>
  
  <p>I have already tried using the <em>CLICK</em> and <em>DBLCLICK</em> events on random elements of the page, also using alternative mouse buttons (1,2) e.g.:</p>
  
  <pre><code>EVENT TYPE=CLICK SELECTOR="HTML&gt;BODY&gt;TABLE&gt;TBODY&gt;TR&gt;TD&gt;TABLE:nth-of-type(4)&gt;TBODY&gt;TR&gt;TD:nth-of-type(3)&gt;TABLE&gt;TBODY&gt;TR:nth-of-type(4)&gt;TD&gt;TABLE:nth-of-type(2)&gt;TBODY&gt;TR:nth-of-type(5)&gt;TD&gt;TABLE&gt;TBODY&gt;TR&gt;TD:nth-of-type(2)" BUTTON=0
  </code></pre>
  
  <p>and also using XPATH instead:</p>
  
  <pre><code>EVENT TYPE=CLICK XPATH="/html/body/table/tbody/tr/td[1]/table[4]/tbody/tr[1]/td[3]/table/tbody/tr[4]/td/table[2]/tbody/tr[1]/td/table/tbody/tr/td[1]/strong" BUTTON=0
  </code></pre>
  
  <p>In both cases the targeted elements are marked but nothing else happens.
  The target is a simple html document structured by tables containing mostly text.</p>
  
  <p>I also tried to use CLICK with point coordinates:
     CLICK X=784 Y=166</p>
  
  <p>And, as suggested in other questions, to use a short delay before the event:
     WAIT SECONDS=1</p>
  
  <p>Please note, that the first event <em>(EVENT TYPE=KEYPRESS CHAR="a" MODIFIERS="ctrl")</em> works flawlessly.</p>
  
  <p>Edit: The version of iMacros for Firefox I was using, was 9.03, the accepted solution works only up to 8.97.</p>