cocoa: implement rtb_get_modkeys()