Just take the code from inside the 'interact' sprite
The player controller is from an old unfinished rpg, I'll release that project December 1st 2025.