Setup switch case statement in mouseDown function