How would I detect no keys pressed using Mouse.KeyDown?

How would I detect if the player doesnt press any keys using the mouse keydown function

1 Like

First of all, you shouldn’t be using Mouse.KeyDown. That event is ancient and has been replaced by UserInputService. If you switch to UserInputService, you can make sure a player isn’t holding any keys by checking the length of GetKeysPressed.

4 Likes

Thats a wow moment, thanks man I’ll uh try that!