update onkey methods