function Update () {
if (Input.GetKey(KeyCode.Home)){
// Home button pressed!
write every thing // Write everything you want to do here
}
if (Input.GetKey(KeyCode.Escape)){
// Escape button codespressed
}
if(Input.GetKey(KeyCode.Menu)){
Application.Quit();
}
}