WIth KeyDown, this was easy. But KeyDown doesn't work for every key and is now deprecated. Before, I could just do something like this:
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local pressed = {}
mouse.KeyDown:connect(function(key)
pressed[key] = true
end)
And this would work because key is a string. Now I could just say pressed.q to check if q had been pressed.
But this isn't so for UsetInputService. With that, you get an Enum as the parameter, not a string. How could I do the same thing as I did with KeyDown, but with the UserInputService?

2 comments
Totally forgot about the Name property, thanks.
No problem.