Suggestion

its possible to add a KeyAdapter. This enables you to only use the method you need. Without writing empty void statements, just because implementing KeyListener requires it.