We present an algorithm to discriminate between the single-trial electroencephalograms (EEG) of two different finger movement tasks. The method uses a spatio-temporal analysis to classify the EEG recorded during voluntary left versus right finger movement tasks. This algorithm produced a classification accuracy of 92.1% on the data from five subjects, without requiring subject training or data selection. This technique can be employed in an EEG-based brain-computer interface due to its high recognition rate, insensitivity to noise, and simplicity in computation.