onmousedown and onmouse up control for pad added

Remember to add support for touch events