Fixed warnings:

in DrawObject.class change keyPressed method