Current flow from pull-up resistor in MCU
The digital inputs on most microcontrollers and logic ICs sense the voltage, and pass very little current.

In your drawing, if the switch is closed, the MCU will see Zero volts, so will sense a logic Low.  Some very small current may flow out of the MCU pin, through the switch, to Ground.