Added a main loop, get char collects the down and up press
this is bad