Tabs: Fixed handling of keyboard and mouse events