{"identifier":8287,"topic":"Commands","name":"commandKeyDown","text":"<code><pre>commandKeyDown <i>char<\/i>\n<\/pre><\/code> The<code> commandKeyDown <\/code>command provides a way of sending a Command-key event from a handler. It acts exactly as if you had pressed Command at the same time as the specified character. <br><br>\n\n HyperCard sends the<code> commandKeyDown <\/code>command to a field (if the insertion point is set) or to the current card when the user presses a Command-key combination. The value passed to the parameter variable<code> <i>char<\/i> <\/code>corresponds to the key pressed. <br>\n<br>\nYou can handle the<code> commandKeyDown <\/code>message as follows: <br><br>\n\n <code><pre>on commandKeyDown theKey\n   <i>statements<\/i>\nend commandKeyDown\n<\/pre><\/code>\nNote:<code> commandKeyDown <\/code>is not sent for characters typed using the<code> type <\/code>command. <br>\n","related":{"54096":"commandKey","3428":"Commands sent automatically","40449":"keyDown","6031":"Where messages are sent initially"},"examples":"","demo":"<br><br>\n\n ","debug":{"9":["commandKeyDown char\r"],"10":["You can handle the c"]}}