fix keypress handle while typing, inline edit and delete