SELECT TRIGGER FROM
	Red Down WHILE Lock Down => SELECT ENABLE FROM
		Ctrl Down => SELECT ENABLE FROM
			LeftShift Down => BSresetScale, Coords, Idle;
			ENDCASE => BSscaleDouble, Coords, Idle;
		ENDCASE => SELECT ENABLE FROM
			LeftShift Down => BSscaleHalve, Coords, Idle;
			ENDCASE => BSscaleRandom, Coords, Idle;
	Yellow Down WHILE Lock Down => SELECT ENABLE FROM
		Ctrl Down => SELECT ENABLE FROM
			LeftShift Down => BSresetCenter, Coords, Idle;
			ENDCASE => BSmoveWindow, Coords, Idle;
		ENDCASE => SELECT ENABLE FROM
			LeftShift Down => BScenter, Coords, Idle;
			ENDCASE => BStoCenter, Coords, Idle;
	Blue Down WHILE Lock Down => SELECT ENABLE FROM
		Ctrl Down => SELECT ENABLE FROM
			LeftShift Down => BSbottom, Coords, Idle;
			ENDCASE => BStop, Coords, Idle;
		ENDCASE => SELECT ENABLE FROM
			LeftShift Down => BSleft, Coords, Idle;
			ENDCASE => BSright, Coords, Idle;
	Mouse WHILE Lock Down WHILE Red Down => SELECT ENABLE FROM
		Ctrl Down => SELECT ENABLE FROM
			LeftShift Down => BSresetScale, Coords, Idle;
			ENDCASE => BSscaleDouble, Coords, Idle;
		ENDCASE => SELECT ENABLE FROM
			LeftShift Down => BSscaleHalve, Coords, Idle;
			ENDCASE => BSscaleRandom, Coords, Idle;
	Mouse WHILE Lock Down WHILE Yellow Down => SELECT ENABLE FROM
		Ctrl Down => SELECT ENABLE FROM
			LeftShift Down => BSresetCenter, Coords, Idle;
			ENDCASE => BSmoveWindow, Coords, Idle;
		ENDCASE => SELECT ENABLE FROM
			LeftShift Down => BScenter, Coords, Idle;
			ENDCASE => BStoCenter, Coords, Idle;
	Mouse WHILE Lock Down WHILE Blue Down => SELECT ENABLE FROM
		Ctrl Down => SELECT ENABLE FROM
			LeftShift Down => BSbottom, Coords, Idle;
			ENDCASE => BStop, Coords, Idle;
		ENDCASE => SELECT ENABLE FROM
			LeftShift Down => BSleft, Coords, Idle;
			ENDCASE => BSright, Coords, Idle;
	Red Up WHILE Lock Down => SELECT ENABLE FROM
		Ctrl Down => SELECT ENABLE FROM
			LeftShift Down => BSresetScale, Coords, Doit;
			ENDCASE => BSscaleDouble, Coords, Doit;
		ENDCASE => SELECT ENABLE FROM
			LeftShift Down => BSscaleHalve, Coords, Doit;
			ENDCASE => BSscaleRandom, Coords, Doit;
	Yellow Up WHILE Lock Down => SELECT ENABLE FROM
		Ctrl Down => SELECT ENABLE FROM
			LeftShift Down => BSresetCenter, Coords, Doit;
			ENDCASE => BSmoveWindow, Coords, Doit;
		ENDCASE => SELECT ENABLE FROM
			LeftShift Down => BScenter, Coords, Doit;
			ENDCASE => BStoCenter, Coords, Doit;
	Blue Up WHILE Lock Down => SELECT ENABLE FROM
		Ctrl Down => SELECT ENABLE FROM
			LeftShift Down => BSbottom, Coords, Doit;
			ENDCASE => BStop, Coords, Doit;
		ENDCASE => SELECT ENABLE FROM
			LeftShift Down => BSleft, Coords, Doit;
			ENDCASE => BSright, Coords, Doit;
	ENDCASE .