The function "inGameUISetEventHandler" only works when the action is triggered through the ENTER key.
This seems to be a very little bug and is most likely not intended.
I know many people that would be SUPER HAPPY if the function worked as intended, because it would add the possibility, to f/e lock someone up in a vehicle if certain variables were given. At the given moment it's not really possible in any other way.