You enter battle mode automatically when you approach an enemy.
Everything else outside of battles is considered exploration mode.