fix #310: InsertWithCursor should support Home/End/PageDown/PageUp keys