Add support for auto-deselecting the character.

Not as efficient as it should be... but, works.