Recording user input for automatic playback

i want to know this too (for a rhythm game)