I am trying to simulate the upper Macbook keys to any active app using
CGEventCreateKeyboardEvent (NULL, (CGKeyCode)keycode, true); CGEventCreateKeyboardEven
Media keys are not treated as normal keyboard events, for some reason. This post shows what the events look like.