Version: 2017.3
public TouchScreenKeyboard.Status status ;

Description

Returns the status of the on-screen keyboard. (Read Only)

The status specifies if the on-screen keyboard is visible or if it was closed. The keyboard is closed when it loses focus or when the input is finished or canceled.