add some keyboard operations