Novices are often tempted to detect pushbutton presses (or releases) using external pin (EXTI) interrupts 1. Then they find with unpleasant surprise, that each pushbutton press results in many EXTI interrupts.
Mechanical contacts don't produce one clean edge in the signal when pressed/released; rather, they generate a sequence of irregular pulses before the signal settles at its new level. This phenomenon is called bouncing and a good treatise on its causes and consequences has been published by the legendary Jack Ganssle.
Users are also often tempted to "fix" the problem by adding a capacitor in parallel to the pushbutton, which together with internal pullup ,used usually to establish the idle signal level, form a simple RC circuit. This simplistic approach may result in excessive contact wear due to relatively high discharge current when switching on. But even properly designed RC filter does not guarantee problem-free operation, as it results in relatively slow rise and fall times, which then may be prone to generate a series of interrupts, too (although this is partially remedied by the Schmitt trigger character of digital input on STM32 pins). Note, that EXTI is asynchronous and reacts to very short pulses, regardless of the system clock used.
The most general solution is debouncing of mechanical buttons' signal in software, in a periodic process. Here is a good description (although in German) 2. Second part of Jack Ganssle's article contains a couple of related thoughts and examples of software debouncing, too.
In STM32, timers provide a digital filter hardware on each of their channels in input capture mode. This may or may not be sufficient to handle pushbutton(s), given the limited timing range (and given the limited number of timers and their utility in other functions).
The corollary is, that EXTI interrupts are generally not suited to process signals coming from mechanical switches (pushbuttons, switches, encoders) 3.