You can use a variable on the player, so on the E event for picking, set to true in an action like for example player.hasItem=true. Then on the condition for the E key press event you can say 'if player.hasItem=false', so E only works if they are not carrying an item.