FKeyStateList_: TFPList; // Keeps track of which keys are pressed I suggest to change this to array[0..N] of integer (N can be only 2? 5? 10? 20?). this way we won't do mem allocs on each keypresss/depress. Alexey Torgashin