How to change a spritekind?

How would I do this? I am trying to make a controller up is pressed, it changes the spritekind. This is in Javascript btw

Blocks:
image
TypeScript:

mySprite.setKind(SpriteKind.Player)  // Could also be, for example, SpriteKind.Text if you have a kind called "Text"

Python:

mySprite.set_kind(SpriteKind.Custom)  # Could also be, for example, SpriteKind.Text if you have a kind called "Text"

Set sprite kind to:

when you are in javascript in sprites go to overlaps. there is a piece there that says “Set mySprite kind to player.” you can change that if you want.