Quote Originally Posted by technomage
Try the following

[pascal]
if (keystate^[SDLK_q] <> 0) then
[/pascal]

You need to dereference the pointer in freepascal unless you use -MDelphi in which case you don't need the ^ (but it doesn't hurt)
I added ^ but now it tells: Illegal qualifier.
-MDelphi is it the same as putting {$MODE DEPHI} at the beginning of the program??