Arrows to move, Z to jump and X to run. If you don’t do anything for too long sonic will start waiting.
Sega and @Sonic062 for the sonic sprite. A huge props to @Griffpatch for the tutorial.