Remove extra #define's, split send_event, clean up keycode table