Press Key "x" to rotate that character. Press Key "z" to move the character horizontally randomly.
Inspired by CS50 :P