Added kbdHandler and mouseHandler vars