duplicated keyboard to maze.sml, and moved to list of list of ref structure