The Brain is easy enough to do but whether it would catch it would depend on how long the limit is seen for, also the latching in the brains can be problematic. I would soon write a Brain up if you coulnt manage.
Is this a new problem that has just started on a previously good system or is it a new system and the problem has been there since day 1?
If the latter then could just be noise or a bouncy switch and if thats the case then you could try increasing the Debounce Interval.
Hood