It doesn't compile ProcessKeyDown is an undeclared identifier.

in which unit is this it defined