changed 'buttonWasPressed' to 'input' to match Robby's function :-)