left-right key func added , and print clean up