A method for programming a touch screen of an apparatus is provided. The touch screen includes sensors for sensing locations of inputs and generating corresponding signals, and keys each of which consisting of a group of the sensors. The method includes: designing a group of the sensors as a key; setting an associated function to the designed key; generating a layout file of the designed keys; showing the layout file to prompt position and the associated function of each of the keys; acquiring the associated functions according to the key indicated by the signals; and executing the acquired functions.