Keyboard inputs are not working in Unity Build for OS X

Hello Guys,

I am facing a issue. This is my simple code if you have any solution/info please suggest me

    void Update()
    {
        if (Input.GetKeyDown (KeyCode.Escape))
        {
            loginPanel.SetActive (false);
        }
    }

Can you please help me, why this code is not working in OS X build?
When I press Escape key only error beep comes
But it working on editor after build its not working

I am using Unity 5.4.0 and OS X 10.9.5

Thanking you

After doing a lots of R&D and stretching my hairs I found this issue occur when you launch app using -popupwindow command line argument in OS X then keyboard will not work.
According to native API of OS X if we are open a app without title bar then we have to override NSWindow canBecomeKeyWindow bool for enable keyboard.

So anybody here to help me, How can I override the canBecomeKeyWindow bool in unity app?