fix shortcut bug, implement Esc key.