Compare this script, with the "Directional Buttons" script.