I have made a Pong clone, and I've come across a problem. The KeyListener only works sometimes. There is no pattern that I have been able to find.
For reference here is my Pong.java(the main class): http://pastebin.com/8d7BqK4x
Here is the Board.java(Graphics and KeyListener): http://pastebin.com/0zb526BE