Making a platform that can be tresspassed from below and that can be tresspassed from above wiht te press of a button

LIke a platform in a kirby game or like those found on the smash bros series. I used a tutorial as a base and passing from below is not that big of an issue, the problem is the part of the button from above; i tried using the “s” key, but it does not work.
Here I attached an image of the blueprint of the platform (is in both spanish and english for some reason)