added keyboard controls for arrow movement