how to get keyboard size in tvOS app

I want to build a tvOS app that displays in portrait mode. I want to get the keyboard information becuase even my textfield is in portrait mode , keyboard always appears in landscape mode only. How can I achieve this?