Turning flashlight on and off

I have a test map I’m working on, I’ve granted players the “flashlight pistol” and the “flashlight” on startup. Both work but I can’t fine a way to turn the light on and off without switching weapons.

If I select the flashlight or flashlight pistol and press L it switches my weapon back to the pickaxe.

Is there some way I can have the player holding the “flashlight pistol” and let them turn the light on and off without putting the pistol away?

Is there a way to use a flashlight in combination with an existing weapon?

Basically I’m trying to do a game where it will be very dark and I want the player to be able to have a light on their weapon (or their head) that they can easily turn on and off without changing the weapon they are holding.

Can this be done with the existing weapons or will I have to make some kind of custom one?