use the arrow keys
Ok Amazingmech2418,I found the glitch. The reason it kept going through the floor was because of the terrain, when there are two platforms parallel to each other horizontally, it gets confused and squeezes through the floor.