> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# keyclick

> ส่ง key down event ตามด้วย key up event เมื่อ Roblox window active อาร์กิวเมนต์ keyCode ถูกตรวจเป็น Lua number แปลงด้วย integer conversion map จาก Windows virtual-key code เป็น scan code ด้วย Windows key mapping และส่งผ่าน keyboard input พร้อม KEYEVENTF_SCANCODE หาก isrbxactive จะเป็น false function จะ return โดยไม่ส่ง input

<div className="real-function-page">
  ```lua theme={null}
  keyclick(keyCode: number)
  ```

  ## Aliases

  * `keytap`

  ## Arguments

  <ParamField path={"keyCode"} type={"number"} required>
    Windows virtual-key code ที่อ่านเป็น Lua number และแปลงด้วย integer conversion ก่อนเรียก Windows key mapping
  </ParamField>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.