You’ll only get stuff in the array from GetActionMappingByName if you have it in the project settings. Just tried it, works fine.
ReleaseKey not too sure about. You certain need to use it in a blueprint widget component, so it might not be what you’re looking for.
I guess you could code your input ‘as if’ the key is no longer down.