name followed by "::" must be a class

本人新手,请教一个各位老师,这个怎么解决啊??谢谢

keyPressed不是一个类,需要去写一个keyPressed 的class