Little question

all i need to know is how to stop the arm from going down from the top position to the bottom position and from going to the top from the bottom position without stopping in the middle position while holding down the down or up arrow key.