Create a terminal, a script box, or a room text entity. Right-click on it and click "Properties". Now, change any of the raw property values of the entity. Press "OK". Now, you will no longer be able to switch rooms using the arrow keys, nor use the 1234567890RTYUIOP keyboard tool shortcuts, until you press F12 and go back to State 1. I haven't tested if the controls lock up with any other entities other than terminals, script boxes, or room text entities.