Sometimes, when starting a game, my F1 key (which is set to Select Hero) bugs out. When pressing it, I get an error message saying "Ability not learned."
This is very annoying since I cannot select my hero anymore.
Unbinding and rebinding the key has no effect.
I used a keyboard tester to prove that my F1 key press is registered and not remapped to something else.

If I disconnect and reconnect, or restart the game, then the issue still persists, but I no longer get the error message. Simply my F1 key does nothing.
I have no keyboard/macro/hotkey application on my PC.

This bug happens randomly, about once in 50 games, but when it does it's very very annoying.
Here's a match where it happened last: (I was Pugna)

Did anyone encounter this before?