Check when i stop using keyboard or mouseWheel

Hi everyone,

I am using the mousewheel mouse event and keyboard keys to perform certain actions. But how can i check when the user has stopped using either the mouseWheel or keyboard???

If anybody can help me.

Thanks for any help,

Jerome