The SECUREINPUT() function returns whether the Mac is currently in ::SecureInputMode. It returns 1 if the Mac is in Secure Input Mode or 0 otherwise.