Moved d, g, k, m, y, u handling code from IOManager to Menu.