Open shortcuts from keyboard in Firefox 52.0.2

I see this strange behaviour with Firefox on Windows 10:

I don’t know why in the gif seems that I click on post instead of the close button.