we should check both `isUpperCase` and `isUpperCaseLocked` to know if it is in uppercase state.