Hello, I take this picture from the data reference of STM32F030Fx series.
As I understand, pull-up to Vdd is more preferable way for button processing. I think in the Cube IDE I can configure it as Pull UP and there is no need for external ressistor, according to that schematic?
In so many of schematics, I saw 100nF capacitor, probably for debounce purposes, so maybe this is suitable for avoding software debounce.