Well, my collegue accidentally helped me with this problems, so finally the solution is:
[DllImport("coredll.dll", SetLastError = true)] static extern bool
AllKeys(bool bAllKeys);
Than just call:
AllKeys(true);
According to blogs.windows.com:
This function allows your programs to request that all key presses be sent directly to the requesting application. Normally some buttons are intercepted by the operating system for its own use, but games and input - intensive applications may want access to these buttons for their own use.