collision prevention: updated sensors; added lag between key presses