添加keyPress directive