PHP Code:
if (StrEqual(blockkey, "alt1", false))
{
Blocked_Keys[KEY_IN_ALT1] = true;
changed = true;
}
else if (StrEqual(blockkey, "al2", false))
{
Blocked_Keys[KEY_IN_ALT2] = true;
changed = true;
}...
Don't put else if since you can have many keys to block. Exemple, if you block 'al2' (which spelling wrong by the way) it will work fine, but if you block alt1 and al2 and the player hold alt1 and al2 in the same time than al2 won't be blocked since it check the condition of alt1, do is part and switch to the end.