improve Apple Fn key identification & handling
reorganize imports & defines
delayed Apple Fn key identification