created history cursor
correct up arrow behaviour
adding down arrow func
down arrow working almoust like console
down button checks cursor value