It looks like you're new here. If you want to get involved, click one of these buttons!
"For me it returns a series of 0 or 1 (doesn't detect) and a series of -127/-128 if I call again the function with the Space key... So it keeps the last press but doesn't update in the loop"
I'm seeing the same with Bricscad V15 and Windows 7. I'm not sure whether I'm missing something or if the function does not work with current versions of Windows.