How to customize my script?

how to customize my laser pointer from click to keycode E?
so here is the script:
player = game.Players.LocalPlayer

tool = script.Parent

repeat wait() until player

tool.Equipped:connect(function(mouse)

mouse.Button1Down:connect(function()

tool.Handle.Beam.Enabled = not tool.Handle.Beam.Enabled

end)

end)

1 Like

You could use UserInputService or ContextActionService