Hi, @lnowak Welcome to the forum.
You need to detect when the button is pushed, not while the button is pushed.
Google;
arduino button change of state
Tom..