Read button state.