Added analog keyboard
replaced delay function with if and milicesc
added clock functionality