Version: 2017.3
public static bool visible ;

説明

キーボードがスクリーン上に表示されている場合は true を返します