### Godot version

4.0 beta 10

### System information

Windows 11

### Issue description

On the text editor when using autocomplete on function arguments that receive Input Map names after autocompleting the function name, the string autocompleted appears with an extra " at the end.
This doesnt happen if you write " and then accept the Input name in the dropdown

### Steps to reproduce

- On the script editor
- Start writing `Input.get_vector` but when the dropdown appears with the autocomplete suggestion for `Input.get_vector` press enter to accept it, then press enter again to accept the Input map suggestion
- The autocompleted input name should have an extra "

### Minimal reproduction project

N/A
int ssq_lower_match_len = 0;
		int sst_start = -1;
		int sst_lower_start = -1;
		for (int i = 0; *tgt; tgt++, tgt_lower++, i++) {
			
			if (*sst == *tgt) {
				sst++;
				if (sst_start == -1) {
					sst_start = i;
				}
			} else if (sst_start != -1 && *sst) {
				sst = &string_to_complete[0];
				sst_start = -1;
			}
			
			if (*ssq == *tgt) {
				ssq++;
				if (ssq_match_len == 0) {
					ssq_match_start = i;
				}
				ssq_match_len++;
			} else if (ssq_match_len > 0) {
				ssq_matches.push_back(Pair<int, int>(ssq_match_start, ssq_match_len));
				ssq_match_len = 0;
			}
			
			if (*sst_lower == *tgt) {
				sst_lower++;
				if (sst_lower_start == -1) {
					sst_lower_start = i;