Just add code to the function that fires when the key is pressed. In the article you linked, that would be in the IsHooked function.