The title explains it hopefully this is possible.
Script:
local UIS = game:GetService('UserInputService')
local Player = game.Players.LocalPlayer
local Character = Player.Character
UIS.InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.W then
local Anim = Instance.new('Animation')
Anim.AnimationId = 'rbxassetid://1667958741'
PlayAnim = Character.Humanoid:LoadAnimation(Anim)
PlayAnim:Play()
end
end)
UIS.InputEnded:connect(function(input)
if input.KeyCode == Enum.KeyCode.W then
Character.Humanoid.WalkSpeed = 16
PlayAnim:Stop()
end
end)

5 comments
What do you mean by "2 keys"?
2 Keys as keyboard buttons 2 buttons
Do you mean like, for example, you'd press W then Q?
yes
Ok if no ones gonna answer can this atleast get pinned or something so more people can see it?