<doc>
  <legacy_id>1293</legacy_id>
  <name>keysDown</name>
  <type>function</type>
  <syntax>
    <example>the keysDown</example>
    <example>keysDown()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <function tag="shiftKey">shiftKey Function</function>
    <function tag="altKey">altKey Function</function>
    <function tag="capsLockKey">capsLockKey Function</function>
    <function tag="commandKey">commandKey Function</function>
    <function tag="controlKey">controlKey Function</function>
    <message tag="keyDown">keyDown Message</message>
    <message tag="keyUp">keyUp Message</message>
    <function tag="optionKey">optionKey Function</function>
    <message tag="rawKeyDown">rawKeyDown Message</message>
    <message tag="rawKeyUp">rawKeyUp Message</message>
    <message tag="controlKeyDown">controlKeyDown Message</message>
  </references>
  <history>
    <introduced version="1.1">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> a list of the keys currently being pressed.</summary>
  <examples>
    <example>the keysDown</example>
    <example>if myKey is in the keysDown then exit to top</example>
  </examples>
  <description>
    <p>Use the <b>keysDown</b> <control_st tag="function">function</control_st> to respond to a keypress while a <glossary tag="handler">handler</glossary> is being <glossary tag="execute">executed</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>keysDown</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a list of <glossary tag="keycode">keycodes</glossary> of pressed keys, separated by commas if more than one key is being pressed.</p><p/><p><b>Comments:</b></p><p>The keycodes returned by the <b>keysDown</b> <control_st tag="function">function</control_st> are the same as those <glossary tag="pass">passed</glossary> as <glossary tag="parameter">parameters</glossary> with the <message tag="rawKeyDown">rawKeyDown</message> and <message tag="rawKeyUp">rawKeyUp</message> <glossary tag="message">messages</glossary>.</p><p/><p>The <b>keysDown</b> <control_st tag="function">function</control_st> returns empty if no keys are being pressed.</p>
  </description>
</doc>