This project works because of a bug with the "key up arrow pressed?" and "key down arrow pressed?" that causes them to run when you scroll up or down.