adb shell dumpsys input_method
하면 아래와 같이 나옵니다.
그중에서 'mCurIntent=Intent...' 값을 확인 하면 됩니다.
추가내용
'mInputShown'값은 키보드가 켜있는지 확인하는 값입니다.
출처 : https://stackoverflow.com/questions/12903907/how-to-determine-whether-softkeyboard-is-shown-on-the-screen-while-using-monke