# MX\_RELEASEKBD
> [HTML Version](mx_releasekbd.htm)
_Updated May 2013_
**xcall MIAMEX, MX\_RELEASEKBD \{,opcode, typeahead\}**
MX\_RELEASEKBD (MIAMEX 153) Releases or sets the keyboard hold—i.e. controls whether keyboard characters entered on the client are transmitted to the server.
This function has both a [subroutine and a print tab implementation](subroutine-print-pairs.htm.md).
**Parameters**
_opcode_ ([Num](num.htm.md)) \[in\]
| **opcode** | **Description** |
|------|------|
| 0 or omitted | causes the keyboard hold to be released, provided it hasn't been locked. |
| 1 | causes the keyboard hold to be set, and optionally passes the contents of text to ATE to be reprocessed as type-ahead. |
| 2 | clears the keyboard hold, even if it has been locked. |
_typeahead_ ([String](string.htm.md)) \[in\]
If specified, the contents will be forced into the keyboard buffer.
**See Also**
• [AG\_RELEASEKBD](ag_releasekbd.htm.md)
**History**
2013 May, A-Shell 6.1.1352: Opcode 2 added