multiple press detection in one function call