Arduino: internal pullups are often not enough
So the same issue hit me twice: the on-chip, programmable pullups are only reliably doing their work if the environment is clean: electrical noise from steppers triggered interrupts the zener diode on the pwm1b pin4 of a digistump made it float around Adding 10k/4k7 pullups and 33n debounce caps did the trick.