Update ActionEvent.java

fixed typos, added in getIndex()