keyPressed Help

Hello thank you for your help I can not do I have several more error message ( unexpected token: void
expecting EOF, found ‘else’)
and this part of the code does not pose a problem is especially the position of the arms that jam because I have assigned two positions that vary in if a key is pressed but they appear at the same time