What I would do is make a true/false case structure so that when the "button pressed?" reads false it does nothing but when it reads true it divides the value by 2.
Voilą!
(Although if it IS a controller problem the above posts should help fix that

)