Box that stops cursor from going inside it

You can use a border for the box and you can probably use a cursor element or get a cursor trail which hides the actual cursor.

Sorry if this question is hard to answer! I don’t really suggest stuff that much.