Fixed key event issues with floating widgets.