> ## 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

> Sends a key down event followed by a key up event when the Roblox window is active. The keyCode argument is checked as a Lua number, and sent with keyboard input with KEYEVENTF_SCANCODE. If isrbxactive would be false, the function returns without sending 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 read as a Lua number and converted to an integer before Windows key mapping is called.
  </ParamField>
</div>
