<doc>
  <legacy_id>1673</legacy_id>
  <name>keyUp</name>
  <type>message</type>
  <syntax>
    <example>keyUp <i>keyname</i></example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <command tag="focus">focus Command</command>
    <function tag="keysDown">keysDown Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Sent when the user releases a pressed key.</summary>
  <examples>
    <example>on keyUp <code><i>-- play a keyclick sound</i></code></p><p><code><i>  -- in this example, the parameter is not needed or used</i></code></p><p>  play audioClip "click"</p><p>end keyUp</example>
  </examples>
  <description>
    <p>Handle the <b>keyUp</b> <keyword tag="message box">message</keyword> if you want to do something special when the user releases any key (or a particular key you check for in the <glossary tag="handler">handler</glossary>).</p><p/><p><b>Parameters:</b></p><p>The <i>keyName</i> is the actual character of the pressed key.</p><p/><p><b>Comments:</b></p><p>The message is sent to the active (focused) control, or to the current card if no control is focused.</p><p/><p>If the key pressed is the Return, Tab, Backspace, Delete, or Enter key, an arrow key, or a function key, no <b>keyUp</b> <keyword tag="message box">message</keyword> is sent.</p><p/><p><code/><img src="202652"/> <b>Cross-platform note:</b><code/> On <glossary tag="Mac OS">Mac OS systems</glossary>, the <b>keyUp</b> <keyword tag="message box">message</keyword> is sent after any <message tag="keyDown">keyDown</message> <glossary tag="handler">handlers</glossary> finish <glossary tag="execute">executing</glossary>, whether or not the key has been released. On <glossary tag="Unix">Unix</glossary> and <glossary tag="Windows">Windows systems</glossary>, the <b>keyUp</b> <keyword tag="message box">message</keyword> is sent when the key is released, after the typed character has been added to the current <keyword tag="field">field</keyword>. To test whether a key is actually being pressed, use the <function tag="keysDown">keysDown</function> <control_st tag="function">function</control_st>.</p>
  </description>
</doc>