Keyboard type changing detect

I want to get info current keyboard type when user change keyboard type on it. For example, passed from numbers to letters. I want to get letter type. How to do this?

Secondly, can I open keyboard with its numbers side or letters side programmatically?

Keyboard type changing detect
 
 
Q