Use the up and down arrow keys, or the w and s keys to move! Also, if you touch a line, just hit the flag again.