Anyone program Neopixel bedroom lights to an IR remote?

I’m pretty new to arduino and wanted to do a fun project. I am working on LED strip lights for my room, I’m making it original by making my own patterns, the issue that I’m running into is one of my patterns is a For () loop that goes on for a bit, and while it’s running I do any other actions on the remote (example Turning the LEDs off) I was wondering if anyone had ideas how to constantly check for a button input, or even if there was a better way to do it.