Sleep before inserting keys to editor