thanks that worked, made the panel keyboard command work from the main keyboard loop and it works, but it is weird, how you can flags = OVERLAY | VISIBLE; inside the panel it self, but cannot flags = flags & ~VISIBLE;