Contrary to what hippy says, it is possible to use Touch in the background on a 40X2.
I created a "Noughts and Crosses" (Tic Tac Toe) game on a 28X2, whose silicon is almost the same as the 40X2.
I used a 100mS timer interrupt to read 9 Touchpads. A "touch" event was only validated after its "release" event was detected. The foreground task did regular averaging of the readings as well as actioning the inputs: driving 9 outputs connected to LEDs.
It was not a particularly easy thing to do. The touch inputs' sensitivities are affected by the number of outputs being driven, so the touch event had to be compared with a dynamic threshold. This threshold was calculated from the averaging of each Touch pad's idle condition. For more details of the problems with Touch,
refer to this post from last year.