small program that takes inputfrom arrow keys