KeyListener vs. Key Bindings
KeyListener is a much lower level API which requires the component that it is registered to be focused AND have keyboard focus. This can cause issues when you have other components within your game that may grab keyboard focus, for example. KeyListener is generally more difficult to maintain and extend or change, as typically, all … Read more