isrbxactive when timing matters.
Input
Input
Drive the mouse and keyboard, and check window focus.
The Input library sends synthetic mouse and keyboard input to the game and reports whether the window is focused. Keyboard functions take Windows virtual-key codes. Input only reaches the game while its window is active, so pair these with