Complete controlling of the mouse press and release event.