Weird Cmd + K bug

when i select all the code and press either cmd+k or shift+cmd+K it goes to a specific block of code. it doesn’t bring up the popup for me to write the instruction. see the gif below

closing and reopening the cursor worked. but what was the problem?
maybe it had something to do with that specific block of highlighted code?