update on startmenu.java. added iskeypressed function.