Added Insert functionality to KeyHandler.