Brain PET scanning plays an important role in the diagnosis, prognostication and monitoring of many brain diseases. Motion artifacts from head motion are one of the major hurdles in brain PET. In this work, we propose to use wireless MR active markers to track head motion in real time during a simultaneous PET-MR brain scan and incorporate the motion measured by the markers in the listmode PET reconstruction. Several wireless MR active markers and a dedicated fast MR tracking pulse sequence module were built. Data were acquired on an ACR Flangeless PET phantom with multiple spheres and a non-human primate with and without motion. Motions of the phantom and monkey's head were measured with the wireless markers using a dedicated MR tracking sequence module. The motion PET data were reconstructed using list-mode reconstruction with and without motion correction. Static reference was used as gold standard for quantitative analysis. The motion artifacts, which were prominent on the images without motion correction, were eliminated by the wireless marker based motion correction in both the phantom and monkey experiments. Quantitative analysis was performed on the phantom motion data from 24 independent noise realizations. The reduction of bias of sphere-to-background PET contrast by active marker based motion correction ranges from 26% to 64% and 17% to 25% for hot (i.e., radioactive) and cold (i.e., non-radioactive) spheres, respectively. The motion correction improved the channelized Hotelling observer signal-to-noise ratio of the spheres by 1.2 to 6.9 depending on their locations and sizes. The proposed wireless MR active marker based motion correction technique removes the motion artifacts in the reconstructed PET images and yields accurate quantitative values.