I don't know why if I use this function, it reduces drastically the size of the application, like zoom out, but work ok
C#:
k_push_int = key_label.Text;
Enum.TryParse(k_push_int, out key_push);
if (KeyInterop.KeyFromVirtualKey((int)key_push) != 0)
{
if (Keyboard.IsKeyDown(KeyInterop.KeyFromVirtualKey((int)key_push)))
{
label3.Text = "1";
pressed = 1;
}
if (Keyboard.IsKeyUp(KeyInterop.KeyFromVirtualKey((int)key_push)))
{
pushtimerOUT.Enabled = true;
}
}