PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

UserInputService:GetKeysPressed

UserInputService:GetKeysPressed

Sep 26 2018, 2:35 AM PST

This example returns an array of the KeyCodes of the keys currently pressed by the user, or an empty array if there are no pressed keys. It then prints the KeyCodes of the pressed keys.