I have imported the following and still get an error when using sendKeys();
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.*;
This is because of your eclipse Editor.
Follow the steps below to overcome that error.
Here there are two things you need to check
A.Java Build Path > Libraries- Here editor should refer the version installed on your machine. If it's referring the old library files then remove it and click on Add Library and select the latest Jre system library from the List.
B.Java Compiler. Here Compiler compliance level should be the latest/ the one installed on your machine.