That probably means you have electrical noise. What kind of breakout board you have? Does it have optocouplers on the inputs? What is the input logic voltage?
P. S. I'm sure someone will soon tell you to use "debounce" function in Mach3 settings. While it MIGHT help in some situations, it only masks the underlying noise problem instead of fixing it.