That's because the demo doesn't support API commands, which that code
uses (they're the commands ending with an underscore character, in the
SetKey procedure).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.