Fixed the assertion when holding the down key and pressing left or right.