A key code library for mac