update TypeScript definition for mouse events and key event aliases