Select component with click and delete selected component using backspace