Press space to start recording and press it again to stop. Move with the arrows (you can only move while recording) and replay it by pressing A. This is simpler than using directions, but if you are using keys for something other than movement or direction, you should do it using directions.