I understand the issue now, and actually, it's worse than you think!
If you try the following Key sequence, the F4 key state gets stuck at 1, even after you stop pressing:
F4 DOWN
ALT DOWN
F4 UP
ALT UP
// set window properties
SetWindowTitle( "Alt F4" )
SetWindowSize( 1440, 900, 0 )
SetVirtualResolution(1440,900)
txt = CreateText("Alt F4")
setTextSize(txt,30)
SetTextPosition(txt, 10, 10)
do
print("")
print("ALT : " + str(GetRawKeyState(18)))
print("F4 :" + str(GetRawKeyState(115)))
sync()
loop
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt