Added hasKeyChanged() method prototype.
Added Routines::hasKeyChanged() method.
This is called in Thaed::startTimeLoop(), right after checking for timer updates. It is used to ensure that keyboard events are checked at a fixed interval.