> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-4/keydown.zh.md).

# KeyDown

\<evalcmd> KeyDown && bool && 指定的按键按下为 **True**。 && key && 测试的修饰键。 && \[key...] && 第二个修饰键... \</evalcmd>

如果指定的修饰键 *key* 或 *keys* 被按下，则返回**True**。如果提供了多个键，则所有键都必须被按下才会返回**true**。

有效的关键字是 **none**、**shift**、**ctrl** 和 **alt**。

//<Example://>

```
if (KeyDown("shift", "ctrl"")) { ... } // shift 和 ctrl 都被按下？
```
