Super Mario World/Star World 1

By spin jumping along the right edge of the level you will be able to reach the key easily.