implement short/long press event.