using timer for panel animation and key listening