Matrix NxN keyboard input. first element <-> last element