Keypad and noise
As gidimiz suggested, it is good practice to to use active low inputs, as most MCUs have ports that are tied high, it is common sense. Lower value resistors will also help 1-4k7 is ok, will increase current though. I have had trouble in the past with keypads layed out like yours, always now use low ips if possible. Also make sure that the debounce is at least 20ms.
Added after 8 minutes:
Just another thought,
You probably wont need the diodes. Pullup resistors on the input port only. Output low, look for low inputs. Much better for noise. Probably you could lose the ferrites as well, unless it is a long cable.