The functional use of brain-machine interfaces (BMIs) in everyday tasks requires the accurate decoding of both movement and force information. In real-word tasks such as reach-to-grasp movements, a prosthetic hand should be switched between reaching and grasping modes, depending on the detection of the user intents in the decoder part of the BMI. Therefore, it is important to detect the rest or active states of different actions in the decoder to produce the corresponding continuous command output during the estimated state. In this study, we demonstrated that the resting and force-generating time-segments in a key pressing task could be accurately detected from local field potentials (LFPs) in rat's primary motor cortex. Common spatial pattern (CSP) algorithm was applied on different spectral LFP sub-bands to maximize the difference between the two classes of force and rest. We also showed that combining a discrete state decoder with linear or non-linear continuous force variable decoders could lead to a higher force decoding performance compared with the case we use a continuous variable decoder only. Moreover, the results suggest that gamma LFP signals (50-100 Hz) could be used successfully for decoding the discrete rest/force states as well as continuous values of the force variable. The results of this study can offer substantial benefits for the implementation of a self-paced, force-related command generator in BMI experiments without the need for manual external signals to select the state of the decoder.