Hook keyPressEvent for deletion