making proscene inner classes external
KeyboardAgent completed. Updating all the examples
remove reduntant cast