W-up A-left S-down D-right Z-to shoot when yellow
I'm never making a Undertale fight in scratch every again. It is very painful. https://scratch.mit.edu/projects/815157758/