Do you really need the calculations to be updated for each keypress? Assuming not, I suggest you use the Exit event instead.