ScrollArea remove Elements/Hook ESC Key

There is no such method as onKeyboardPress (the KeyboardListener is for the textfield and other) you have to come with you own solution by registering a key to the inputManager etc…(wiki inputManager), as exemple you can extends the window to handle it.

As side note, an element is not a spatial, casting is not allowed there, you picked the wrong children method, you need to use “getElementChildren” and not “children”.
If you iterating over all children you can use the elementID to get the needed children (if doing so you need to know the id of the needed children, when creating an element you can give them a custom ID)

About the alignement you need to use the layout system or come with you own solution, i can’t explain the layout system as i’ve never used it and it is one of the last added feature.
thread on layout
for some exemple try : test case project