Checking total inputs exceeded not only for last key.