The following code will fail to detect key presses, depending on the order the keys are pressed. Using the shiftkey as a modifer to make a player walk or run is a common control method, and is how I came across this error:
win:TGadget=CreateWindow("",0,0,400,300) ActivateGadget CreateCanvas(0,0,400,300,win) enablepolledinput() While WaitEvent()<>EVENT_WINDOWCLOSE SetGadgetText win,KeyDown(KEY_UP) + KeyDown(KEY_RSHIFT) + KeyDown(KEY_NUM0) Wend