Arduino: Running Programs in Parallel

I want to know if you can run two actions on the arduino at the same time while another action is going on. For example:

while the arduino is running (some action A) its also running (some action B)

What I'm trying to make is a count down timer that stops with a code. But while entering the code, the countdown runs in the background. So while its running the count down action, its also running the code entering action.

Anyone know how to do this?

I haven’t coded arduino (but

I haven’t coded arduino (but I am an avrfreak), but I believe you will want to use a timer interrupt.