[QUOTE=Ezzaral;1742802]The listener would be added your panel. You could also use KeyBindings: [url]http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html[/url][/QUOTE]
Thank you so much for your quick reply:)! I have been trying to add the listener to "panel", "super" and all sorts I can think of to be honest. But I will start looking in to KeyBindings, as it might be better for this code.