Hold the down and up keys at the same time. The up key takes priority, for some reason. When you run into a wall, Frisk will go down for a frame (or multiple) before going back up, and it repeats. It's a good way to grind monsters in genocide because the encounters come every certain amount of steps, and each time Frisk turns around, it counts as a step. I think. I'll try to find a gif