improved event managing in c_event::f_treat(), separated mouse event and keyboard event popup