I have imported the following and still get an error when using sendKeys();
sendKeys();
import org.openqa.selenium.*; import org.openqa.selenium.firefox.*;
I faced the same problem during using eclipse Kepler.
Problem domain: My java compiler compliance level was 1.4
Solution: so using build path >> configure build path>> java compiler>> changed the compiler compliance level to 1.7 or higher
This could solve the problem.