implements "onkeyDown" in jarActivity.java