The energy is affected by the work function (which is constant for a given piece of metal), but, more importantly, the frequency of the light. (hf and all that). If you're calculating the KE, you don't need to worry about the velocity of the particles...(as it's directly proportional to the KE you've just found).