Only send commands when mouse is pressed