makefile improvements
formatting unification
improve apple Fn key identification & handling
reorganize imports & defines
delayed Fn key identification