[Bug]: escape key doesn't work after selecting text shape
### What happened?

Repro steps
* create a single text shape and click outside the shape complete editing / unselect it
* select the shape using the select tool
* hit the ESC key

Expected
* selection is cleared

Actual
* selection is not cleared

Details
* we found this issue while upgrading to tldraw 3.10.1 so we think its related to that upgrade
* for us this issue breaks not just the ESC key but also DELETE (so it prevents deleting a single selected text shape). selecting multiple text shapes seems to work
* after several hours of debugging we tracked it down to some sort of a focus issue which we worked around by adding logic to focus the tldraw container on the next tick whenever a single text shape is selected

### How can we reproduce the bug?

https://github.com/user-attachments/assets/0740d524-cdee-4fd0-911b-644d86fb14e9

### What browsers are you seeing the problem on?

Safari, Chrome

### Where did this happen?

The developer package

### Contact Details

_No response_

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct