I found a way to bypass the problem, I use function 02Dh to send to IO port 64h, and this way I write anything I want in output of the 8042.
Actually, my program polls for data in output of the keyboard (not the best way, that's sure).
Only problem, I use this to mask IRQ1
in al, 21h
or al, 00000010b
out 21h, al
but after this, IRQ's still happen, I don't understand why.
Any ideas?