When remapping the keybind for Hotbar Slot 5 from the default number key (5) to E, pressing E while hovering over an item inside an inventory interface (such as a Chest, Inventory, or Crafting Table) does not consistently move the hovered item to the 5th hotbar slot.
Instead, one of two unexpected behaviors occurs:
Pressing E does nothing.
Pressing E picks up/attaches the item to the cursor (as if left-clicked) or opens/closes the inventory due to keybind conflict handling with the default "Open/Close Inventory" key.
Steps to Reproduce
Open Options > Controls > Key Binds.
Locate Hotbar Slot 5 and remap its keybind from 5 to E.
(Optional) Remap Open/Close Inventory to another key (e.g., Tab or I) to clear direct conflicts.
Open any container inventory (e.g., a Survival Inventory or Chest) containing items.
Hover the mouse cursor over an item in the top or middle container grid.
Press the E key.
Expected Result
The item currently under the cursor should immediately move to the 5th slot of the player's hotbar (or swap places with whatever item is currently occupying hotbar slot 5).
Observed Result
The item fails to transfer to hotbar slot 5.
In some instances, the item becomes attached to the mouse cursor as if picked up manually via left-click, or the inventory interface unexpectedly closes/behaves inconsistently.
Additional Notes
Expected behavior works as intended when using default numerical keys (1 through 9).
The issue appears related to how hardcoded or secondary inventory key checks (such as inventory closing or primary click handling) intercept the E keypress event before hotbar swap logic processes it.
Please attach a video of the issue.