Searching inventory interrupted by other hotkeys

Platform: PC
Game mode: Server 1001
Problem: Bug

Free text
Some times, when searching for stuff in the inventory, pressing m (for map) or any of the other hotkeys, search in interrupted and for example the map is shown.

Repro steps: