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

13 functions
FunctionDescription
isrbxactiveReturns whether the Roblox window is currently focused and accepting input.
keyclickPresses and releases a keyboard key.
keypressPresses a keyboard key and keeps it held until released.
keyreleaseReleases a previously pressed keyboard key.
mouse1clickPresses and releases the left mouse button.
mouse1pressPresses and holds the left mouse button.
mouse1releaseReleases the left mouse button.
mouse2clickPresses and releases the right mouse button.
mouse2pressPresses and holds the right mouse button.
mouse2releaseReleases the right mouse button.
mousemoveabsMoves the mouse cursor to an absolute screen position.
mousemoverelMoves the mouse cursor relative to its current position.
mousescrollSends a mouse wheel scroll delta.