clear selection when entering command mode