Plasticity in fenics

Please supply a minimal example as described at Read before posting: How do I get my question answered? as it for instance is not clear what kind of variable key is.