This controls like my colour based engine (WASD), however the colours are on the player hitbox costume instead of on the platforms. You can change the colour from pink in the code if you want and then make levels with whatever you set the colour to, it should still work. This will work with any sprite as long as you update the hitbox costume for it.
I made all of this, please give me credit if you use it in a project. If you use this in your own game, feel free to link it in the comments, I'd love to see what people do with this and it gives you a chance to advertise.