To get the bug...
?ENDIF //<- This remark causes the following problem.
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.6.873 SN:2a049f7b - 3D, NET
"controls.gbas"(0) error : IF without ENDIF / THEN
To remove the bug...
?ENDIF
...remove the remark.
This was an incredible pain to find as it always reported that the problem was with an ordinary 'IF/THEN/ENDIF' at line 0, no matter where the problem was.
OK, fixed in next update.