thanks to programmer-CPR for the original project
use arrow keys to move up and down,avoid garbage,and don't use randome