add tick input callback to address the keyboard issue
cleaned up some code
Merge branch 'master' of https://github.com/omf2097/openomf