Delete isTyped() and add clear() in Controller.java