Wall running/ ceiling running/ traversing on wall and ceiling like they are the floor

I new to developing and i’m really out of my depth with this but i’m trying to figure out how can i code or where to start with coding movement where the user would be able to walk on walls and ceiling in the same manner you would walk on the floor. Kinda like spider man with being able to navigate. Could someone help me or direct me to the right path. I’ve added example from different games to get the point across possibly

Thank you in advance