public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if ((newkeys & KEY_SUBMISSION) && !(oldkeys & KEY_SUBMISSION)) { //add your codes } return 1;}