R to rest and arrow keys to move. 326 blocks
thanks to @FantabulousPhoton for giving me the coding and how to make it( but most of it I did myself don't worry)