Wrong orientation on Surface Pro 3 if Keyboard is attached

My game is portrait only and portrait orientation is selected in Player Settings.

Without the keyboard attached to Surface Pro 3 my game runs on correct orientation. However when the game is launch with the keyboard attached, my game run on landscape. Is this an Unity bug?

I’m using Unity 5.2.2p3 and Surface Pro running on Windows 10

If you mean the cover keyboard of surface, then this is by design. When keyboard is attached, it is no longer tablet, it behaves like desktop.
You can check it by surface’s own orientation lock. Lock surface display in portrait then attach keyboard and place device in landscape position. With keyboard attached surface ignores orientation lock.