Nightmare in Dreamland

Hi all! I'm going kinda crazy. I recently started playing this game again, and I'm having the worst time trying to do the "press a" jump at the end of each level.

Any advice would be much appreciated. As a kid I did it no problem. For some reason I can't seem to hit it at the right time now.