Intiate function as soon as button is pressed, not loop it over and over.

Why does readButton() not return a value? Why does it, apparently, diddle a global variable?