Added a KeyListener object and enabled vertical movement.