Bounding box for WASD camera

Hi there!

Is there a way to confine the WASD camera within certain limits or a bounding box? I’ve created a room and I would like the viewer to be able to navigate only within it. Many thanks