Check the bounds for '[' and ']' keys