Make hotkeys work when detaching the player