Hunger System Pick Up food with a button

OK, so I stored if the key was pressed as variable. In theory it should work but it doesn’t! Seems like c++ or blueprins whaterver just hates normal logic and likes to keep things compilcated. Please help me