translate key events