Added back hasKeyChanged() and removed keys_ boolean.
The hasKeyChanged() method was added again, because it will be needed in checking for key press states. Also, the keys_ boolean was removed because its purpose will not be fulfilled.