Removed repaint() from keyPressed since we have another thread for that now