This anima gadget has four behaviours:
1) I start moving when you press an arrow key
2) I jump when you press an arrow key and control
3) I move left and right with shift and control
4) I start moving right
5) I move in diagonals when you press insert, home, delete or end
See the Java source.