minimal mac keyboard code