rewrite switch statments using if..else for haxe3 compatibility
haxe3 fixes
refactor UI class to use statics only
add Key.SHIFT
add haxelib.json
update README
Merge branch 'dev'