HotKey.SetKeyUp
---------------

Whether to trigger script both on key down and key up.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [HotKey](component_HotKey.md) | [7.1](newinversion71.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "HotKey.SetKeyUp"; HotKeyRef; Value ) 

**MBS**( **"HotKey.SetKeyUp";** /\* Whether to trigger script both on key down and key up. \*/  
**$HotKeyRef**; /\* The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function.e.g. $hotkey \*/   
**$Value**) /\* Pass 1 to receive key down and up events.  
Pass 0 to only get one event for key down.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| HotKeyRef | The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function. | $hotkey |
| Value | Pass 1 to receive key down and up events.   Pass 0 to only get one event for key down. | 1 |

### Result

Returns OK or error.

### Description

Whether to trigger script both on key down and key up.  
The script parameter will have two values. First is the hotkey ID and second KeyDown or KeyUp as text.  
### See also

- [HotKey.GetKeyUp](HotKeyGetKeyUp.md)
- [HotKey.Register](HotKeyRegister.md)
- [HotKey.SetScript](HotKeySetScript.md)

### Release notes

- **Version 7.1**
    - Added [HotKey.GetKeyUp](http://www.mbsplugins.eu/HotKeyGetKeyUp.shtml) and [HotKey.SetKeyUp](http://www.mbsplugins.eu/HotKeySetKeyUp.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 7.1pr3](https://www.mbsplugins.de/archive/2017-02-22/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 10th February 2017 , last changed 27th August 2020

  
[HotKey.SetIgnoreOnModal](HotKeySetIgnoreOnModal.md) - [HotKey.SetLocal](HotKeySetLocal.md)

[HTML Version](HotKeySetKeyUp.shtml)