cocoa_common: handle keyboard modifiers for mouse events