I'm not exactly sure how to do this or if this script is correct but what I have so far is:
function onKeyDown(key)
key:lower()
if key == "q" then
game.Workspace.E.Transparency = 1
end
wait(0.03)
end
function onKeyUp(key)
key:lower()
if key == "q" then
game.Workspace.E.Transparency = 0
end
wait(0.03)
end

3 comments
Umm, I think you meant KeyUp on the second one.
yah
UserInputService is better11!!!1