how to read a keypress AND a mouseclick?

BlitzPlus Forums/BlitzPlus Programming/how to read a keypress AND a mouseclick?

apparently in this code, I can't rightclick the canvas while holding down the left ctrl key. Do I have to use $101 here too? (since $101 and $203 have their own EventData()) Do I miss something? :) any suggestions?

app=CreateWindow("bla",100,100,256,256)

canvas=CreateCanvas(32,32,64,64,app)

; left ctrl= 29

Repeat

	WaitEvent()
	
	If EventSource()=app
		If EventID()=$803 Exit
	EndIf
	
	If EventID()=$101 ; esc
		If EventData()=1 Exit
	EndIf
	
	If EventSource()=canvas
		If EventID()=$201 ; leftmousedown
			If EventData()=1 Exit
		EndIf
	EndIf

	If EventSource()=canvas
		If EventID()=$201 And KeyDown(29); rightmousedown + left ctrl (?)   <-  uh??
			If EventData()=3 Exit
		EndIf
	EndIf
	
Forever
End