Almost done with clock loop and all interrupts and keyboard input interrupt