add managed events

Improves keyboard events to add brother or child
Fix bad popup positionning