Added new test example and updated J5 to latest version
a few cleanups on keyboard control code