# ControlP5 : bug with "alt-gr" on Linux

**URL:** <https://discourse.processing.org/t/controlp5-bug-with-alt-gr-on-linux/1554>\
**Category:** Libraries\
**Created:** [July 6, 2018, 3:21pm UTC](https://discourse.processing.org/t/controlp5-bug-with-alt-gr-on-linux/1554 "2018-07-06T15:21:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![max22](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@max22](https://discourse.processing.org/u/max22)\
**Post date:** [July 6, 2018, 3:21pm UTC](https://discourse.processing.org/t/controlp5-bug-with-alt-gr-on-linux/1554/1 "2018-07-06T15:21:19Z")

</div>

Hello,  
I use controlP5 2.2.6, with processing 3.3.7. With Linux i get this exception when i press “alt-gr” :

java.lang.ArrayIndexOutOfBoundsException: 65406  
at controlP5.ControlWindow.keyEvent(Unknown Source)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1408)  
at processing.core.PApplet.handleMethods(PApplet.java:1610)  
at processing.core.PApplet.handleKeyEvent(PApplet.java:2946)  
at processing.core.PApplet.dequeueEvents(PApplet.java:2599)  
at processing.core.PApplet.handleDraw(PApplet.java:2437)  
at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1557)  
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)

I’ve tested it on my laptop as well as on my raspberry pi, it gives the same exception.  
I’ve also tested it on windows, and it works perfectly.

Has anyone any idea to overcome this problem ?
