@TWO,
I've noticed that my method prevents me from using all the key_... variables. I guess this is because they are set by the default Acknex window procedure, and I am not using the default window procedure.
Does your method of using ScanMessage cause the same problem or can you still use the key_... variables? I also still don't know how to use ScanMessage. (I understand the format of the callback function, but not how it gets called). Could you provide some advice?