Well, you can use the F button too as default, to turn off/on your flashlight and in fact, this command does the same thing... I don't get quite this topic at all but I'm sure you ment that.
By the way: I think, I'll move this thread to the right section, because since you didn't ask nothing about requesting a script or such, I don't see any reason to stay this thread in Scripts section. Always when you want to create a thread, first choose the RIGHT section, based on your doubt or need.