Make s and w useable

hello, i have a script that makes the player’s keys limited to a,d and space. the problem is, i want s and w movement allowed when player is inside a part, how would i do that?

Use Region3 to detect every instance that is inside of the part, then lookup if there’s a player inside the region with workspace:IsRegion3Empty() and if it’s a player, then enable the s and w movement