Issue with BindAction events (Particularly, IE_Released gets called immediately after IE_Pressed)

Hello, I’m using the below code to handle opening/closing of an in game inventory screen. You should press and hold the key to show it, release the key to hide it.

	InputComponent->BindAction("ToggleInventory", IE_Pressed, this, &AChildPlayerController::ShowInventory);
	InputComponent->BindAction("ToggleInventory", IE_Released, this, &AChildPlayerController::HideInventory);

When I press the mapped key, the IE_Pressed event is firing as expected, showing the menu, but the IE_Released event is fired immediately afterwards hiding the menu, even though the key is still pressed.
Releasing the key then fires the IE_Released event again.

Am I doing anything wrong? (Other than using the old input system, the project hasn’t yet migrated to the new system.)

Sorry to bump, but does anyone have an idea as to why the IE_Released event is fired right away?

Another call for help. :slight_smile: