Hello !

Im beginner with this program, and i wanna create simple keybinder in scar divi. I think that i can do it with loop if then, but i have problem with type mismatch. Can You help me?

program keybinder;
var
i:integer;
begin
i:=1;
repeat
if KeyDown(112)) then keydown(49),(50), (51));
end ;
keyup(112);
keyup(49);
keyup(50);
keyup(51);
until
i = 5;
end.

The loop repeat/until is good for me, i wanna used this keybinder all time in my game, when i need click more chars with one keys so i create endless loop.