Handle press event