Implemented basic input handling mechanism.

Fixed bug in Loop causing the update cycle iteration time to be wrong.