Added more function to MyMatrix.
Changed keyboard handling in wx main.