During normal use, if at any time you have a USB cable plugged in (both ends !!) it will assume you want to use it. Otherwise it will look for a DIN MIDI connection.
The situation is different for Updates – it makes the decision once at power-up and doesn't rethink it.