Registering to mousedown and mouseup to simulate button pressing.