Setting up debounce with millis()

... or you could just use the Bounce2 library.

See the Bounce2 library.