It is useful to break a program down into individual blocks that get run at different intervals. A keypad only needs to be checked every five milliseconds, an LCD (and the human eye) are slow devices, ...