Restructure keyboard array