Added handling of pressing the return button when the input contains a valid HEX colour code