Handling Long Button Press

Hi,

Is there any recommendations on handling a long button hold? I am trying to implement a reset on a App, but only want to happen if the user holds a key for a few seconds.

Cheers
Chris