for get keyboard and mouse event in window system