fixed to infinite loop when press undefined key.
Inserted process of after care on redisplay.
Made initialization processing to be related to glyph.