Hello, everyone. I am working with Teensy 2.0 to create a 3-modes numeric keyboard using a sealed membrane 4x4 keypad very similar to this one http://imall.iteadstudio.com/im120726003.html.

The code is finished(the results are what I want) but the three modes are in individual sketches: numerickeyboard.ino mode2.ino mode1.ino
I am trying to get this modes "joined" in one and my idea was to used a three position switch as a mode selector. But because of the space (and time), I would like to use a push button as a selector and using a bi-color(those green and red) led that shows which mode is operating.

I need help to put together the code because I am starting to program with this project.

Here are pictures of the hardware, under the keypad you can see the project box I am going to use.
Click image for larger version. 

Name:	DSCN3476.JPG 
Views:	207 
Size:	367.4 KB 
ID:	788 Click image for larger version. 

Name:	DSCN3475.JPG 
Views:	218 
Size:	359.5 KB 
ID:	789


Thanks in advance