feature #3357: Check input state