using scancodes will never give you total security cause the layout is diffrent in various language sets. For example Y and Z are swapped in the german layout. So people usually try pressing Z if "Y for yes" doesn't work.
GetKey() at the other hand returns the correct Ascii number of the keyhit.
GetKey() at the other hand returns the correct Ascii number of the keyhit.