add event of focus and keypu