Category
Input
Keyboard and mouse input events.Category guide
Overview
Use this overview to understand the category before opening a specific function.- See what this group of functions is meant to solve.
- Compare function names and descriptions in one table.
- Open a function for syntax, arguments, returns, and examples.
Input
Available functions
| Function | Description |
|---|---|
isrbxactive | Returns whether the Roblox window is currently focused and accepting input. |
keyclick | Presses and releases a keyboard key. |
keypress | Presses a keyboard key and keeps it held until released. |
keyrelease | Releases a previously pressed keyboard key. |
mouse1click | Presses and releases the left mouse button. |
mouse1press | Presses and holds the left mouse button. |
mouse1release | Releases the left mouse button. |
mouse2click | Presses and releases the right mouse button. |
mouse2press | Presses and holds the right mouse button. |
mouse2release | Releases the right mouse button. |
mousemoveabs | Moves the mouse cursor to an absolute screen position. |
mousemoverel | Moves the mouse cursor relative to its current position. |
mousescroll | Sends a mouse wheel scroll delta. |