Edit the key handler to make the key only open if there was no other gui open, and edited some ingame stuff