Inheritance in xml added.
Render and KeyPress functions now getting the correct arguments.