Mode switch bug solved.

Mode switch also did regular keypress for that key.