marquee selection only with left mouse, and fixed error with keydown events