@Override
		public final void keyPressed(KeyEvent e)
			{
				int code = e.getKeyCode();
				if (code > 0 && code < keys.length)
					keys[code] = true;

				if (TCode.DEBUG) // quick finding out of keycodes
					if (e.isAltDown() && e.getKeyCode() != KeyEvent.VK_ALT)
						System.out.println(e.getKeyChar() + " = " + e.getKeyCode() + "   - (keycode for ALT key = 18)" + " - class: InputReciever");

				if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
					{
						try
							{
								int answer = JOptionPane.showConfirmDialog(null, "Are you sure you want to quit?", "Exit program?", JOptionPane.YES_NO_OPTION);
								if (answer == JOptionPane.YES_OPTION)
									{
										System.exit(0);
									}
							}
						catch (Exception exception)
							{
								exception.printStackTrace();
							}
					}

				if (TCode.FORCE_SINGLE_THREAD)
					threadSafeKeyEvents.offer(e);
				else
					{
						TCode.frame.processKeyEvent(e);
						TCode.renderer.getRenderableObject().keyPressed(e);
					}
			}